From bee2df2210997ad35ffc6d740e50af8f8914c5292aebe065b11736ceb0eae5da Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Wed, 2 Sep 2015 11:04:39 +0000 Subject: [PATCH] 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 --- thttpd.changes | 5 +++++ thttpd.spec | 11 ++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/thttpd.changes b/thttpd.changes index 5fde36c..c34e3bf 100644 --- a/thttpd.changes +++ b/thttpd.changes @@ -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 diff --git a/thttpd.spec b/thttpd.spec index a03250a..39e2ce7 100644 --- a/thttpd.spec +++ b/thttpd.spec @@ -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} \