From 019c11e46a66659044a6f757aad45c65a86e86e2 Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 22 Jan 2013 07:51:15 +0000 Subject: tcpdump: add SLL parsing support to tcpdump-mini, use -ffunction-sections, -fdata-sections and --gc-sections to reduce size git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35288 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/network/utils/tcpdump/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'package/network/utils/tcpdump/Makefile') diff --git a/package/network/utils/tcpdump/Makefile b/package/network/utils/tcpdump/Makefile index df1ee3c31..b32d25f75 100644 --- a/package/network/utils/tcpdump/Makefile +++ b/package/network/utils/tcpdump/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=tcpdump PKG_VERSION:=4.2.1 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.tcpdump.org/release/ \ @@ -54,6 +54,9 @@ CONFIGURE_ARGS += \ --enable-ipv6 endif +TARGET_CFLAGS += -ffunction-sections -fdata-sections +TARGET_LDFLAGS += -Wl,--gc-sections + CONFIGURE_VARS += \ BUILD_CC="$(TARGET_CC)" \ HOSTCC="$(HOSTCC)" \ -- cgit v1.2.3