Accepting request 404888 from home:pluskalm:branches:devel:tools:building

Lets try PIE (as already discussed with scarabeus)

OBS-URL: https://build.opensuse.org/request/show/404888
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=252
This commit is contained in:
Martin Pluskal
2016-06-27 11:29:40 +00:00
committed by Git OBS Bridge
parent 6e944f71b6
commit ad02e4d23b
5 changed files with 24 additions and 10 deletions

View File

@@ -75,8 +75,9 @@ echo "`grep %{name}-%{version}.tar.gz %{SOURCE5} | grep -Eo '^[0-9a-f]+'` %{SOU
%patch7 -p1
%build
export CXXFLAGS="%{optflags}"
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags} -fPIE"
export CFLAGS="%{optflags} -fPIE"
export LDFLAGS="-Wl,--as-needed -Wl,--no-undefined -Wl,-z,now -pie"
# FIXME: you should use the %%configure macro
./configure \
--prefix=%{_prefix} \