summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-03-16 22:55:43 +0100
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-03-16 22:55:43 +0100
commit3c8bc6b0e08139da5d7243ea7d913def650cd397 (patch)
tree02e200b049af8768516c3656309bf1a8f4f81404 /package
parent99516d13cc03b561b8c88b0196bcbb55da4b1bc8 (diff)
allow lto, reported by psutter
Diffstat (limited to 'package')
-rw-r--r--package/iptables/Makefile3
-rw-r--r--package/iptables/patches/patch-ltmain_sh2
2 files changed, 3 insertions, 2 deletions
diff --git a/package/iptables/Makefile b/package/iptables/Makefile
index 43c8be732..622415791 100644
--- a/package/iptables/Makefile
+++ b/package/iptables/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= iptables
PKG_VERSION:= 1.4.12.2
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 212112389c7f10c72efb31a4ed193a4c
PKG_DESCR:= The netfilter firewalling software
PKG_SECTION:= firewall
@@ -33,6 +33,7 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,IPTABLES,iptables,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,IPTABLES_DEV,iptables-dev,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR},${PKGSC_IPTABLES_DEV}))
+TARGET_LDFLAGS+= -fPIC
CONFIGURE_ARGS+= --enable-devel
iptables-install:
diff --git a/package/iptables/patches/patch-ltmain_sh b/package/iptables/patches/patch-ltmain_sh
index fa93f8a96..912a59b32 100644
--- a/package/iptables/patches/patch-ltmain_sh
+++ b/package/iptables/patches/patch-ltmain_sh
@@ -5,7 +5,7 @@
# @file GCC response files
-64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
- -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
-+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto)
++ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto|-fPIC)
func_quote_for_eval "$arg"
arg="$func_quote_for_eval_result"
func_append compile_command " $arg"