[packages/grub2] - keep the build as simple as possible

baggins baggins at pld-linux.org
Mon Apr 15 23:09:35 CEST 2013


commit 5bc5d8917d6cf2a36001831918d5cc836f3d96a0
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Apr 15 23:08:44 2013 +0200

    - keep the build as simple as possible

 grub2.spec | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/grub2.spec b/grub2.spec
index b0013b1..1f3eb76 100644
--- a/grub2.spec
+++ b/grub2.spec
@@ -134,8 +134,9 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # part of grub code is not relocable (these are not Linux libs)
 # stack protector also breaks non-Linux binaries
-%define		filterout_c	-fPIC
+%define		filterout_c	-fPIC -O.
 %undefine	_ssp_cflags
+%undefine	_fortify_cflags
 
 %description
 GRUB is a GPLed bootloader intended to unify bootloading across x86
@@ -314,9 +315,9 @@ grep -rl -- -Wno-missing-field-initializers . | xargs %{__sed} -i -e 's,-Wno-mis
 
 %build
 # if gold is used then grub doesn't even boot
-install -d our-ld
-ln -s /usr/bin/ld.bfd our-ld/ld
-export PATH=$(pwd)/our-ld:$PATH
+#install -d our-ld
+#ln -s /usr/bin/ld.bfd our-ld/ld
+#export PATH=$(pwd)/our-ld:$PATH
 
 cp -f /usr/share/automake/config.sub .
 %{__libtoolize}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/grub2.git/commitdiff/268c41560efcca7044d3c9f3c9acf6df8b4610ae



More information about the pld-cvs-commit mailing list