aboutsummaryrefslogtreecommitdiffstats
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
commit824f15d4c42682f7c7f2a4a60b782d737a0a8c09 (patch)
treefc2efd2361cbcc71d1f375a9e306cb94beced4d2 /package/libpcap/Makefile
parente9bddc34a315c477904bf0b66c2d0eb42134cdbd (diff)
downloadupstream-824f15d4c42682f7c7f2a4a60b782d737a0a8c09.tar.gz
upstream-824f15d4c42682f7c7f2a4a60b782d737a0a8c09.tar.bz2
upstream-824f15d4c42682f7c7f2a4a60b782d737a0a8c09.zip
reduce the binary size of libpcap based programs that don't use bpf parsing
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13686 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 cf0304b4cf..620fdb94bc 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 \