summaryrefslogtreecommitdiff
path: root/package/libpcap/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-12-19 06:35:23 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-12-19 06:35:23 +0000
commit78babdb9542fae95a5b890a57630af7bcc22d61b (patch)
tree328a5b3acfa8eee38184288358fb2cfbcfb4fd9d /package/libpcap/Makefile
parentc3f7c0f12118553f5485640f6ad1404dea849b60 (diff)
downloadmtk-20170518-78babdb9542fae95a5b890a57630af7bcc22d61b.zip
mtk-20170518-78babdb9542fae95a5b890a57630af7bcc22d61b.tar.gz
mtk-20170518-78babdb9542fae95a5b890a57630af7bcc22d61b.tar.bz2
reduce the binary size of libpcap based programs that don't use bpf parsing
SVN-Revision: 13686
Diffstat (limited to 'package/libpcap/Makefile')
-rw-r--r--package/libpcap/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/libpcap/Makefile b/package/libpcap/Makefile
index cf0304b..620fdb9 100644
--- a/package/libpcap/Makefile
+++ b/package/libpcap/Makefile
@@ -30,7 +30,8 @@ define Package/libpcap/description
packet capture.
endef
-TARGET_CFLAGS += $(FPIC)
+TARGET_CFLAGS += \
+ -ffunction-sections -fdata-sections
CONFIGURE_ARGS += \
--enable-shared \