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