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