SHA256
3
0
forked from pool/zlib

Accepting request 86496 from Base:System

- cross-build fix: use %__cc macro (not %configure, this is not
  autoconf) (forwarded request 86488 from uli_suse)

OBS-URL: https://build.opensuse.org/request/show/86496
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zlib?expand=0&rev=39
This commit is contained in:
Ruediger Oertel 2011-10-04 16:16:11 +00:00 committed by Git OBS Bridge
parent d91ee33f9d
commit 24acb76431
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Oct 4 09:10:46 UTC 2011 - uli@suse.com
- cross-build fix: use %__cc macro (not %configure, this is not
autoconf)
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Aug 26 18:36:11 UTC 2011 - crrodriguez@opensuse.org Fri Aug 26 18:36:11 UTC 2011 - crrodriguez@opensuse.org

View File

@ -98,14 +98,14 @@ export LDFLAGS="-Wl,-z,relro,-z,now"
%if %{do_profiling} %if %{do_profiling}
profiledir=$(mktemp -d) profiledir=$(mktemp -d)
trap "rm -rf $profiledir" EXIT trap "rm -rf $profiledir" EXIT
./configure --shared CC="%__cc" ./configure --shared
%{__make} CFLAGS="$RPM_OPT_FLAGS %{cflags_profile_generate}=$profiledir" %{?_smp_mflags} %{__make} CFLAGS="$RPM_OPT_FLAGS %{cflags_profile_generate}=$profiledir" %{?_smp_mflags}
time make check time make check
make clean make clean
%{__make} CFLAGS="$RPM_OPT_FLAGS %{cflags_profile_feedback}=$profiledir" %{?_smp_mflags} %{__make} CFLAGS="$RPM_OPT_FLAGS %{cflags_profile_feedback}=$profiledir" %{?_smp_mflags}
%else %else
export CFLAGS="%optflags" export CFLAGS="%optflags"
./configure --shared CC="%__cc" ./configure --shared
%{__make} %{?_smp_mflags} %{__make} %{?_smp_mflags}
%endif %endif