aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-06-07 19:14:17 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-06-07 19:14:17 +0000
commita592b1e37038d6cd6909461449cb0f0d18a8dbb6 (patch)
tree261dfc42fd4001c6675a32e4e7b2a086d3049f03
parent436d42c5cd36615355fd78e25f30d3a98afaa0c3 (diff)
downloadupstream-a592b1e37038d6cd6909461449cb0f0d18a8dbb6.tar.gz
upstream-a592b1e37038d6cd6909461449cb0f0d18a8dbb6.tar.bz2
upstream-a592b1e37038d6cd6909461449cb0f0d18a8dbb6.zip
uqmi: use -ffunction-sections and --gc-sections, reduces binary size from 57k to 29k
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41051 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/network/utils/uqmi/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/network/utils/uqmi/Makefile b/package/network/utils/uqmi/Makefile
index 18e0954ad2..027fc0d1c2 100644
--- a/package/network/utils/uqmi/Makefile
+++ b/package/network/utils/uqmi/Makefile
@@ -34,7 +34,9 @@ define Package/uqmi/description
endef
TARGET_CFLAGS += \
- -I$(STAGING_DIR)/usr/include
+ -I$(STAGING_DIR)/usr/include -ffunction-sections -fdata-sections
+
+TARGET_LDFLAGS += -Wl,--gc-sections
CMAKE_OPTIONS += \
-DDEBUG=1