Skip to content
Snippets Groups Projects
Commit 06707710 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

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

SVN-Revision: 25821
parent 0e4c9de0
No related branches found
No related tags found
No related merge requests found
...@@ -225,6 +225,9 @@ TARGET_CPPFLAGS := \ ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment