diff --git a/bzip2.changes b/bzip2.changes index b959ac4..5a97e66 100644 --- a/bzip2.changes +++ b/bzip2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 19 11:01:43 UTC 2014 - meissner@suse.com + +- build with PIE + ------------------------------------------------------------------- Mon Nov 03 16:19:00 UTC 2014 - Led diff --git a/bzip2.spec b/bzip2.spec index 274c23e..1047b93 100644 --- a/bzip2.spec +++ b/bzip2.spec @@ -99,6 +99,8 @@ autoreconf -fiv %if %{do_profiling} export CFLAGS="$RPM_OPT_FLAGS %{cflags_profile_generate}" %endif +export CFLAGS="$CFLAGS -fPIE" +export LDFLAGS="-pie" %configure --with-pic --disable-static %if %{do_profiling} make %{?_smp_mflags}