diff --git a/zlib.changes b/zlib.changes index 9ddfce0..a7e09c7 100644 --- a/zlib.changes +++ b/zlib.changes @@ -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 diff --git a/zlib.spec b/zlib.spec index c15e23a..01ed0ff 100644 --- a/zlib.spec +++ b/zlib.spec @@ -98,14 +98,14 @@ export LDFLAGS="-Wl,-z,relro,-z,now" %if %{do_profiling} profiledir=$(mktemp -d) trap "rm -rf $profiledir" EXIT -./configure --shared +CC="%__cc" ./configure --shared %{__make} CFLAGS="$RPM_OPT_FLAGS %{cflags_profile_generate}=$profiledir" %{?_smp_mflags} time make check make clean %{__make} CFLAGS="$RPM_OPT_FLAGS %{cflags_profile_feedback}=$profiledir" %{?_smp_mflags} %else export CFLAGS="%optflags" -./configure --shared +CC="%__cc" ./configure --shared %{__make} %{?_smp_mflags} %endif