This commit is contained in:
parent
f2c5cc8239
commit
4197d4e9ca
@ -100,10 +100,9 @@ autoreconf -fiv
|
|||||||
export CFLAGS="$RPM_OPT_FLAGS %{cflags_profile_generate}"
|
export CFLAGS="$RPM_OPT_FLAGS %{cflags_profile_generate}"
|
||||||
%endif
|
%endif
|
||||||
export CFLAGS="$CFLAGS -fPIE"
|
export CFLAGS="$CFLAGS -fPIE"
|
||||||
export LDFLAGS="-pie"
|
|
||||||
%configure --with-pic --disable-static
|
%configure --with-pic --disable-static
|
||||||
%if %{do_profiling}
|
%if %{do_profiling}
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags} LDFLAGS="-pie"
|
||||||
profile_bzip2
|
profile_bzip2
|
||||||
mkdir .libs.save
|
mkdir .libs.save
|
||||||
mv .libs/*.gcda .libs.save/
|
mv .libs/*.gcda .libs.save/
|
||||||
@ -112,7 +111,7 @@ mv .libs.save .libs
|
|||||||
export CFLAGS="$RPM_OPT_FLAGS %{cflags_profile_feedback}"
|
export CFLAGS="$RPM_OPT_FLAGS %{cflags_profile_feedback}"
|
||||||
%configure --with-pic --disable-static
|
%configure --with-pic --disable-static
|
||||||
%endif
|
%endif
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags} LDFLAGS="-pie"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall pkgconfigdir=%{_libdir}/pkgconfig
|
%makeinstall pkgconfigdir=%{_libdir}/pkgconfig
|
||||||
|
Loading…
Reference in New Issue
Block a user