Accepting request 315592 from home:vitezslav_cizek:branches:server:http

- build with pie and full relro

OBS-URL: https://build.opensuse.org/request/show/315592
OBS-URL: https://build.opensuse.org/package/show/server:http/thttpd?expand=0&rev=32
This commit is contained in:
Marcus Rückert 2015-09-02 11:04:39 +00:00 committed by Git OBS Bridge
parent 9542aab497
commit bee2df2210
2 changed files with 9 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Jul 5 09:43:36 UTC 2015 - vcizek@suse.com
- build with pie and full relro
-------------------------------------------------------------------
Thu Jun 18 15:07:51 UTC 2015 - thehejik@suse.com

View File

@ -98,14 +98,11 @@ mv aclocal.m4 acinclude.m4
libtoolize --force
aclocal --force
autoconf -f
export V_CCOPT="%{optflags}"
export CFLAGS="%{optflags}"
export V_CCOPT="%{optflags} -fPIC -DPIC -fPIE"
export CFLAGS="%{optflags} -fPIC -DPIC -fPIE"
export LDFLAGS="-pie -Wl,-z,relro,-z,now"
%configure
%ifarch s390 s390x
make F_PIE="-fPIE" -j1
%else
make F_PIE="-fpie" -j1
%endif
make
%install
install -d %{buildroot}%{_bindir} \