add -fPIC to default flags

pull/2/head
weidai 2008-11-21 05:33:00 +00:00
parent 6176add700
commit 12d515c6db
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