reduce the binary size of libpcap based programs that don't use bpf parsing
[openwrt/svn-archive/archive.git] / package / libpcap / Makefile
index cf0304b..620fdb9 100644 (file)
@@ -30,7 +30,8 @@ define Package/libpcap/description
  packet capture.
 endef
 
-TARGET_CFLAGS += $(FPIC)
+TARGET_CFLAGS += \
+       -ffunction-sections -fdata-sections
 
 CONFIGURE_ARGS += \
        --enable-shared \