From 24acb76431b8f84cdf97da50283a669141fa912f1823387f256f308e16ea60ff Mon Sep 17 00:00:00 2001 From: Ruediger Oertel Date: Tue, 4 Oct 2011 16:16:11 +0000 Subject: [PATCH] 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 --- zlib.changes | 6 ++++++ zlib.spec | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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