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