From: Felix Fietkau Date: Wed, 2 Mar 2011 12:01:08 +0000 (+0000) Subject: hostapd: use -ffunction-sections, -fdata-sections and --gc-sections, reduces binary... X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=bb5b1d953a952de31a7de8419a151ef3fb7da1df hostapd: use -ffunction-sections, -fdata-sections and --gc-sections, reduces binary size a bit SVN-Revision: 25821 --- diff --git a/package/hostapd/Makefile b/package/hostapd/Makefile index 3b4978fc86..83622b41ba 100644 --- a/package/hostapd/Makefile +++ b/package/hostapd/Makefile @@ -225,6 +225,9 @@ TARGET_CPPFLAGS := \ -DCONFIG_LIBNL20 \ -D_GNU_SOURCE +TARGET_CFLAGS += -ffunction-sections -fdata-sections +TARGET_LDFLAGS += -Wl,--gc-sections + ifdef CONFIG_PACKAGE_kmod-mac80211 TARGET_LDFLAGS += -lm -lnl-tiny endif