From 1dadf59343783b542dd62c2107b9748089566b389b584fbedd592cb725222bf5 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 21 Oct 2011 14:23:43 +0000 Subject: [PATCH] Accepting request 88925 from Base:System OBS-URL: https://build.opensuse.org/request/show/88925 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pigz?expand=0&rev=4 --- pigz.changes | 6 ++++++ pigz.spec | 3 +++ 2 files changed, 9 insertions(+) diff --git a/pigz.changes b/pigz.changes index 410351c..2292861 100644 --- a/pigz.changes +++ b/pigz.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Sep 30 15:54:33 UTC 2011 - uli@suse.com + +- cross-build workaround: use fake cc script to work around build + system that does not honor CC + ------------------------------------------------------------------- Thu Jun 2 12:20:22 CEST 2011 - visnov@suse.cz diff --git a/pigz.spec b/pigz.spec index dded9f9..2093dc0 100644 --- a/pigz.spec +++ b/pigz.spec @@ -48,6 +48,9 @@ multi-core machines %build export MYCFLAGS="${RPM_OPT_FLAGS}" +echo -e "#!/bin/bash\nexec %__cc \"\$@\"" >cc +chmod 755 cc +export PATH=.:$PATH %{__make} CFLAGS="$MYCFLAGS" PREFIX=%{_prefix} LIBDIR=%{_libdir} %install