From f2c5cc82394b946a734284d64c36ad4c7ad0a2fbe0740fa399cac2880c0e8077 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 19 Dec 2014 11:03:03 +0000 Subject: [PATCH 1/3] - build with PIE OBS-URL: https://build.opensuse.org/package/show/Archiving/bzip2?expand=0&rev=46 --- bzip2.changes | 5 +++++ bzip2.spec | 2 ++ 2 files changed, 7 insertions(+) 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} From 4197d4e9cafde95f59f7686bfc97b2a68ccac73917410cf58e886032cb70611e Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 19 Dec 2014 11:26:31 +0000 Subject: [PATCH 2/3] OBS-URL: https://build.opensuse.org/package/show/Archiving/bzip2?expand=0&rev=47 --- bzip2.spec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bzip2.spec b/bzip2.spec index 1047b93..00e7760 100644 --- a/bzip2.spec +++ b/bzip2.spec @@ -100,10 +100,9 @@ autoreconf -fiv 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} +make %{?_smp_mflags} LDFLAGS="-pie" profile_bzip2 mkdir .libs.save mv .libs/*.gcda .libs.save/ @@ -112,7 +111,7 @@ mv .libs.save .libs export CFLAGS="$RPM_OPT_FLAGS %{cflags_profile_feedback}" %configure --with-pic --disable-static %endif -make %{?_smp_mflags} +make %{?_smp_mflags} LDFLAGS="-pie" %install %makeinstall pkgconfigdir=%{_libdir}/pkgconfig From a49ffa81d6b408aa685fa904de93886180cc5f8a0d6f5a766dd1c074c2a4c48c Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 19 Dec 2014 11:42:32 +0000 Subject: [PATCH 3/3] OBS-URL: https://build.opensuse.org/package/show/Archiving/bzip2?expand=0&rev=48 --- bzip2.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/bzip2.spec b/bzip2.spec index 00e7760..ae37f27 100644 --- a/bzip2.spec +++ b/bzip2.spec @@ -109,6 +109,7 @@ mv .libs/*.gcda .libs.save/ make clean mv .libs.save .libs export CFLAGS="$RPM_OPT_FLAGS %{cflags_profile_feedback}" +export CFLAGS="$CFLAGS -fPIE" %configure --with-pic --disable-static %endif make %{?_smp_mflags} LDFLAGS="-pie"