Build with -dead_strip on OS X

Bumps 3.5 MB off the binary and doesn't seem to break anything.
This commit is contained in:
Thomas Goyne 2014-01-02 16:25:23 -08:00
parent fc63df571b
commit afd69725fc

View file

@ -19,9 +19,9 @@ DEP = $(addsuffix .d, $(basename $(SRC)))
###################
ifeq (yes, $(BUILD_DARWIN))
CFLAGS += -mmacosx-version-min=10.7
CXXFLAGS += -mmacosx-version-min=10.7
LDFLAGS += -mmacosx-version-min=10.7
CFLAGS += -mmacosx-version-min=10.7 -gfull
CXXFLAGS += -mmacosx-version-min=10.7 -gfull
LDFLAGS += -mmacosx-version-min=10.7 -Wl,-dead_strip
LIB_SHARED_LINK = $(LIB_SHARED_LINK_OSX)
endif