--- ./common.mk.bad 2011-08-19 15:34:03 +0200 +++ ./common.mk 2012-01-17 22:18:13 +0100 @@ -13,9 +13,12 @@ $(call cc-option,-Wwrite-strings) \ $(call cc-option,-Wno-sign-compare) CFLAGS += $(WFLAGS) -SECTION_CFLAGS := $(call cc-option,-ffunction-sections -fdata-sections -Wl$(comma)--gc-sections) +SECTION_CFLAGS := $(call cc-option,-ffunction-sections -fdata-sections) CFLAGS += $(SECTION_CFLAGS) +SECTION_LDFLAGS := $(call cc-option,-Wl$(comma)--gc-sections) +LDFLAGS += $(SECTION_LDFLAGS) + ifneq ($(WITHOUT_LARGEFILE), 1) CPPFLAGS += -D_FILE_OFFSET_BITS=64 endif