revert -ffunction-sections -fdata-sections

pull/2/head
weidai 2007-05-04 19:19:52 +00:00
parent dbf12b654a
commit 0f96a7cd38
1 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
CXXFLAGS = -DNDEBUG -ffunction-sections -fdata-sections -g -O2
LDFLAGS += -Wl,--gc-sections
CXXFLAGS = -DNDEBUG -g -O2
# 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
ARFLAGS = -cr # ar needs the dash on OpenBSD
RANLIB = ranlib
CP = cp