]> git.pld-linux.org Git - packages/grub2.git/commitdiff
- "fix" efiemu on ac-amd64
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 19 Jul 2010 09:24:38 +0000 (09:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    grub2.spec -> 1.81

grub2.spec

index 33a290e79d9bac9970f68265f65c0c4aa5bf5f7d..7ec341ade1cbe86310d3b240a34b3b2865daff69 100644 (file)
@@ -5,7 +5,14 @@
 # Conditional build:
 %bcond_with    static  # build static binaries
 %bcond_without grubemu # build grub-emu binary
-#
+%bcond_without efiemu  # build efiemu runtimes
+
+%if "%{cc_version}" < "3.4"
+# cc does not support:
+# cc1: sorry, unimplemented: code model `large' not supported yet
+%undefine      with_efiemu
+%endif
+
 Summary:       GRand Unified Bootloader
 Summary(de.UTF-8):     GRUB2 - ein Bootloader für x86 und ppc
 Summary(hu.UTF-8):     GRUB2 - rendszerbetöltő x86 és ppc gépekhez
@@ -190,6 +197,7 @@ AWK=gawk \
        --enable-grub-emu-sdl \
        --enable-grub-emu-pci \
 %endif
+       --%{!?with_efiemu:dis}%{?with_efiemu:en}able-efiemu \
        BUILD_CFLAGS="$CFLAGS"
 %{__make} -j1 \
        BUILD_CFLAGS="$CFLAGS" \
@@ -294,9 +302,11 @@ rm -rf $RPM_BUILD_ROOT
 %config(noreplace) %verify(not md5 mtime size) %{_libexecdir}/grub.cfg
 %{_libexecdir}/*.lst
 %{_libexecdir}/*.mod
+%if %{with efiemu}
 %ifarch %{x8664}
 %{_libexecdir}/efiemu*.o
 %endif
+%endif
 %ifarch %{ix86} %{x8664} sparc sparc64
 %{_libexecdir}/boot.img
 %{_libexecdir}/cdboot.img
This page took 0.149011 seconds and 4 git commands to generate.