rpms/iptables/devel iptables.spec,1.35,1.36
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Fri Nov 25 17:03:21 UTC 2005
Author: twoerner
Update of /cvs/dist/rpms/iptables/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv7201
Modified Files:
iptables.spec
Log Message:
[tw]
- fix for plugin problem: link with "gcc -shared" instead of "ld -shared" and
replace "_init" with "__attribute((constructor)) my_init"
Index: iptables.spec
===================================================================
RCS file: /cvs/dist/rpms/iptables/devel/iptables.spec,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- iptables.spec 25 Nov 2005 13:27:51 -0000 1.35
+++ iptables.spec 25 Nov 2005 17:03:17 -0000 1.36
@@ -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 @@
# 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 @@
%endif
%changelog
+* Fri Nov 25 2005 Thomas Woerner <twoerner at redhat.com> 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 <twoerner at redhat.com> 1.3.4-1.1
- rebuild due to unresolved symbols in shared libraries
More information about the fedora-cvs-commits
mailing list