From 1e7e3e18507322668f58bf2c34444e140b3e1a7748f28ac033e98ee6a28d73e9 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Mon, 15 Aug 2011 14:46:23 +0000 Subject: [PATCH] hide CC=gcc-4.6 properly OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=138 --- xen.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xen.spec b/xen.spec index f92905d..92443af 100644 --- a/xen.spec +++ b/xen.spec @@ -916,7 +916,11 @@ export CFLAGS="$RPM_OPT_FLAGS" %if %{?with_dom0_support}0 # EFI %ifarch x86_64 -make -C xen install CC=gcc-4.6 max_phys_cpus=%{max_cpus} debug=n crash_debug=n DESTDIR=$RPM_BUILD_ROOT %{?_smp_mflags} +make -C xen install \ +%if %{?with_gcc46}0 + CC=gcc-4.6 \ +%endif + max_phys_cpus=%{max_cpus} debug=n crash_debug=n DESTDIR=$RPM_BUILD_ROOT %{?_smp_mflags} make -C xen clean %endif install_xen()