New commits:
commit 2896212307fc9b963cccabfa4f88eb2f4ab36949
Author: Pol Vinogradov <vin.public AT gmail.com>
Commit: Pol Vinogradov <vin.public AT gmail.com>
disk/grub2: fixed binary names, gcc flag matching and building with
current freetype2
diff --git a/disk/grub2/BUILD b/disk/grub2/BUILD
index eb7ffdf..e0dd644 100755
--- a/disk/grub2/BUILD
+++ b/disk/grub2/BUILD
@@ -1,8 +1,7 @@
OPTS="${OPTS} ${GRUB2_OPTS} -disable-werror" &&
OPTS="$OPTS --with-platform=${GRUB2_PLATFORM%/*}" &&
-OPTS="$OPTS --target=${GRUB2_PLATFORM#*/}" &&
CFLAGS=${CFLAGS//-m64/} &&
-CFLAGS=${CFLAGS//-O?/-Os} &&
+CFLAGS=${CFLAGS//-O(\d|fast)/-Os} &&
LDFLAGS=${LDFLAGS//-s /} &&
LDFLAGS=${LDFLAGS%-s} &&
disable_pic force &&
diff --git a/disk/grub2/HISTORY b/disk/grub2/HISTORY
index c4f0b4c..cd678f8 100644
--- a/disk/grub2/HISTORY
+++ b/disk/grub2/HISTORY
@@ -1,3 +1,9 @@
+2014-10-10 Pol Vinogradov <vin.public AT gmail.com>
+ * BUILD: removed --target flag, it makes mangled binary names,
+ fixed regexp for gcc's -O flag, now it matches -Ofast as well
+ * PRE_BUILD, grub-2.00-freetype-2.5.1.patch: added a patch from
Gentoo,
+ fixes compilation with current freetype2
+
2014-03-09 Remko van der Vossen <wich AT sourcemage.org>
* BUILD: Do not strip objects, it leads to a broken grub