hostapd: use -ffunction-sections, -fdata-sections and --gc-sections, reduces binary size a bit

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25821 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2011-03-02 12:01:08 +00:00
parent 8f5b76c8d3
commit 25791aaf8d
1 changed files with 3 additions and 0 deletions

View 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