- FPIE flag droped
This commit is contained in:
parent
46c2dd49cd
commit
416a456683
@ -1,9 +1,12 @@
|
|||||||
%define initdir /etc/rc.d/init.d
|
%define initdir /etc/rc.d/init.d
|
||||||
|
#%(if test -d /etc/init.d/. ; then echo /etc/init.d ; else echo /etc/rc.d/init.d ; fi)
|
||||||
|
|
||||||
%define RADVD_UID 75
|
%define RADVD_UID 75
|
||||||
Summary: A Router Advertisement daemon
|
Summary: A Router Advertisement daemon
|
||||||
Name: radvd
|
Name: radvd
|
||||||
Version: 1.0
|
Version: 1.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
|
# The code includes the advertising clause, so it's GPL-incompatible
|
||||||
License: BSD-style
|
License: BSD-style
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source: http://www.litech.org/radvd/radvd-%{version}.tar.gz
|
Source: http://www.litech.org/radvd/radvd-%{version}.tar.gz
|
||||||
@ -26,8 +29,7 @@ services.
|
|||||||
%setup
|
%setup
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fPIE"
|
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
|
||||||
export LDFLAGS='-pie -Wl,-z,relro,-z,now,-z,noexecstack,-z,nodlopen'
|
|
||||||
%configure --with-pidfile=/var/run/radvd/radvd.pid
|
%configure --with-pidfile=/var/run/radvd/radvd.pid
|
||||||
make
|
make
|
||||||
# make %{?_smp_mflags}
|
# make %{?_smp_mflags}
|
||||||
@ -37,6 +39,7 @@ make
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
[ $RPM_BUILD_ROOT != "/" ] && rm -rf $RPM_BUILD_ROOT
|
[ $RPM_BUILD_ROOT != "/" ] && rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%makeinstall
|
%makeinstall
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
|
||||||
mkdir -p $RPM_BUILD_ROOT%{initdir}
|
mkdir -p $RPM_BUILD_ROOT%{initdir}
|
||||||
|
Loading…
Reference in New Issue
Block a user