mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-02-13 18:18:36 +00:00
hostapd: use -ffunction-sections, -fdata-sections and --gc-sections, reduces binary size a bit
SVN-Revision: 25821
This commit is contained in:
parent
0e4c9de00e
commit
0670771013
@ -225,6 +225,9 @@ TARGET_CPPFLAGS := \
|
|||||||
-DCONFIG_LIBNL20 \
|
-DCONFIG_LIBNL20 \
|
||||||
-D_GNU_SOURCE
|
-D_GNU_SOURCE
|
||||||
|
|
||||||
|
TARGET_CFLAGS += -ffunction-sections -fdata-sections
|
||||||
|
TARGET_LDFLAGS += -Wl,--gc-sections
|
||||||
|
|
||||||
ifdef CONFIG_PACKAGE_kmod-mac80211
|
ifdef CONFIG_PACKAGE_kmod-mac80211
|
||||||
TARGET_LDFLAGS += -lm -lnl-tiny
|
TARGET_LDFLAGS += -lm -lnl-tiny
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user