ebtables gets hung up on -fstack-protector, needs -fPIC

This commit is contained in:
Tom Callaway 2006-03-29 21:42:13 +00:00
parent 18d9d63170
commit 87584c19bc

View File

@ -2,7 +2,7 @@
Name: ebtables
Version: 2.0.8
Release: 0.2.%{prever}%{?dist}
Release: 0.3.%{prever}%{?dist}
Summary: Ethernet Bridge frame table administration tool
License: GPL
Group: System Environment/Base
@ -28,7 +28,8 @@ like iptables. There are no known incompatibility issues.
%setup -q -n ebtables-v%{version}-%{prever}
%build
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
MY_CFLAGS=`echo $RPM_OPT_FLAGS -fPIC | sed -e 's/-fstack-protector//g'`
make %{?_smp_mflags} CFLAGS="$MY_CFLAGS"
%install
rm -rf $RPM_BUILD_ROOT
@ -69,6 +70,9 @@ fi
%ghost %{_sysconfdir}/ebtables.broute
%changelog
* Wed Mar 29 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.8-0.3.rc1
- use -fPIC
* Wed Mar 29 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.8-0.2.rc1
- broken tagging