commit 0e2cbb94c4c6081de473b595ad63851260090d31
Author: Jacek Konieczny <[email protected]>
Date:   Sat Oct 27 20:48:09 2012 +0200

    x86_64 build fixes

 grub2.spec | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/grub2.spec b/grub2.spec
index 9ece453..58895d6 100644
--- a/grub2.spec
+++ b/grub2.spec
@@ -111,6 +111,10 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                _libexecdir     %{_libdir}/grub
 %define                _grubdir        /boot/grub
 
+# part of grub code is not relocable (these are not Linux libs)
+# stack protector also breaks non-Linux binaries
+%define        filterout_c     -fPIC -fstack-protector
+
 %description
 GRUB is a GPLed bootloader intended to unify bootloading across x86
 operating systems. In addition to loading the Linux and *BSD kernels,
@@ -269,6 +273,13 @@ export CFLAGS="%{rpmcflags} -Os %{?debug:-g}"
 for platform in %{platforms} ; do
        install -d build-%{target_cpu}-${platform}
        cd build-%{target_cpu}-${platform}
+
+       if [ "$platform" != "efi" ] ; then
+               
platform_opts="--%{!?with_efiemu:dis}%{?with_efiemu:en}able-efiemu"
+       else
+               platform_opts=""
+       fi
+
        ln -s ../configure .
        # mawk stalls at ./genmoddep.awk, so force gawk
        AWK=gawk \
@@ -280,7 +291,7 @@ for platform in %{platforms} ; do
                --enable-grub-emu-sdl \
                --enable-grub-emu-pci \
        %endif
-               --%{!?with_efiemu:dis}%{?with_efiemu:en}able-efiemu \
+               $platform_opts \
                TARGET_LDFLAGS=-static
 
        %{__make}
@@ -481,11 +492,6 @@ fi
 %{_libexecdir}/*-efi/config.h
 %{_libexecdir}/*-efi/gdb_grub
 %{_libexecdir}/*-efi/gmodule.pl
-%if %{with efiemu}
-%ifarch %{x8664}
-%{_libexecdir}/*-efi/efiemu*.o
-%endif
-%endif
 %{_libexecdir}/*-efi/kernel.img
 %endif
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/grub2.git/commitdiff/0e2cbb94c4c6081de473b595ad63851260090d31

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to