add -fPIC to default flags

import/raw
weidai 2008-11-21 05:33:00 +00:00
parent 320c731500
commit f4a3184703
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
CXXFLAGS = -DNDEBUG -g -O2
CXXFLAGS = -DNDEBUG -g -O2 -fPIC
# the following options reduce code size, but breaks link or makes link very slow on some systems
# CXXFLAGS += -ffunction-sections -fdata-sections
# LDFLAGS += -Wl,--gc-sections