diff --git a/iptables.spec b/iptables.spec index aa5c70a..9edb2ea 100644 --- a/iptables.spec +++ b/iptables.spec @@ -3,7 +3,7 @@ Name: iptables Summary: Tools for managing Linux kernel packet filtering capabilities. Version: 1.3.4 -Release: 1.1 +Release: 2 Source: http://www.netfilter.org/%{name}-%{version}.tar.bz2 Source1: iptables.init Source2: iptables-config @@ -71,6 +71,11 @@ rm -rf %{buildroot} # Put it to a reasonable place find . -type f -exec perl -pi -e "s,/usr/local,%{prefix},g" {} \; +# do not use ld -shared and _init +perl -pi -e "s/\(LD\) -shared/\(CC\) -shared/g" Rules.make +perl -pi -e "s/void _init\(/void __attribute\(\(constructor\)\) my_init\(/g" extensions/*.c +perl -pi -e "s/^_init\(/__attribute\(\(constructor\)\) my_init\(/g" extensions/*.c + %build TOPDIR=`pwd` OPT="$RPM_OPT_FLAGS -I$TOPDIR/include -fPIC" @@ -141,6 +146,10 @@ fi %endif %changelog +* Fri Nov 25 2005 Thomas Woerner 1.3.4-2 +- fix for plugin problem: link with "gcc -shared" instead of "ld -shared" and + replace "_init" with "__attribute((constructor)) my_init" + * Fri Nov 25 2005 Thomas Woerner 1.3.4-1.1 - rebuild due to unresolved symbols in shared libraries