hostapd: use -ffunction-sections, -fdata-sections and --gc-sections, reduces binary...
authorFelix Fietkau <nbd@openwrt.org>
Wed, 2 Mar 2011 12:01:08 +0000 (12:01 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 2 Mar 2011 12:01:08 +0000 (12:01 +0000)
SVN-Revision: 25821

package/hostapd/Makefile

index 3b4978f..83622b4 100644 (file)
@@ -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