From 78babdb9542fae95a5b890a57630af7bcc22d61b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 19 Dec 2008 06:35:23 +0000 Subject: reduce the binary size of libpcap based programs that don't use bpf parsing SVN-Revision: 13686 --- package/libpcap/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'package/libpcap/Makefile') 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 \ -- cgit v1.1