Author: gb
Date: Wed Jan 31 07:36:28 2007
New Revision: 115638
Modified:
packages/cooker/qemu/current/SPECS/qemu.spec
Log:
SILENT don't use -mtune=generic if it is not supported
Modified: packages/cooker/qemu/current/SPECS/qemu.spec
==============================================================================
--- packages/cooker/qemu/current/SPECS/qemu.spec (original)
+++ packages/cooker/qemu/current/SPECS/qemu.spec Wed Jan 31 07:36:28 2007
@@ -97,6 +97,10 @@
cat %{SOURCE2} > qvm86/kqemu.h
%build
+# don't use -mtune=generic if it is not supported
+if ! echo | %{__cc} -mtune=generic -xc -c - -o /dev/null 2> /dev/null; then
+ CFLAGS=`echo "$RPM_OPT_FLAGS" | sed -e
"s/-mtune=generic/-mtune=pentiumpro/g"`
+fi
%configure2_5x --cc=%{__cc} --disable-gcc-check --target-list="%{targets}"
--disable-gcc-check
%make