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