Accepting request 265912 from Archiving

- build with PIE

OBS-URL: https://build.opensuse.org/request/show/265912
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bzip2?expand=0&rev=52
This commit is contained in:
Dominique Leuenberger 2014-12-23 11:33:01 +00:00 committed by Git OBS Bridge
commit 628c8900a3
2 changed files with 9 additions and 2 deletions

View File

@ -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 <ledest@gmail.com>

View File

@ -99,18 +99,20 @@ autoreconf -fiv
%if %{do_profiling}
export CFLAGS="$RPM_OPT_FLAGS %{cflags_profile_generate}"
%endif
export CFLAGS="$CFLAGS -fPIE"
%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/
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}
make %{?_smp_mflags} LDFLAGS="-pie"
%install
%makeinstall pkgconfigdir=%{_libdir}/pkgconfig