Petr Uzel 2011-08-31 10:03:36 +00:00 committed by Git OBS Bridge
parent 3ceb667e11
commit 47137d4cd1
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Aug 31 10:00:35 UTC 2011 - puzel@suse.com
- link with -pie
-------------------------------------------------------------------
Fri Aug 19 01:11:42 UTC 2011 - crrodriguez@opensuse.org

View File

@ -80,10 +80,12 @@ autoreconf -fi
# build PIEs (position independent executables) for address space randomisation:
%ifarch s390x %sparc
# s390x needs to use the large PIE model (at least for gpg.c):
CFLAGS="%{optflags} -fPIE" LDFLAGS=-pie \
PIE="-fPIE"
%else
CFLAGS="%{optflags} -fpie" LDFLAGS=-pie \
PIE="-fpie"
%endif
export CFLAGS="%{optflags} ${PIE}"
export LDFLAGS=-pie
%configure \
--libexecdir=%{_libdir} \
--docdir=%{_docdir}/%{name} \