From: acoul Date: Fri, 30 Apr 2010 07:07:20 +0000 (+0000) Subject: package/grub: fix x86_64 issue (closes #7248) X-Git-Url: https://git.archive.openwrt.org/?a=commitdiff_plain;h=a85e4d1eb9b4b46b2e4b5372c9f93d24fb125754;p=openwrt.git package/grub: fix x86_64 issue (closes #7248) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21264 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/grub/Makefile b/package/grub/Makefile index 9a50f820ec..20232f4954 100644 --- a/package/grub/Makefile +++ b/package/grub/Makefile @@ -36,9 +36,12 @@ CONFIGURE_FLAGS:= ifneq ($(HOST_OS),Darwin) define Build/Configure (cd $(PKG_BUILD_DIR); \ + CFLAGS="-march=i486 -m32" \ LDFLAGS="-static" \ ./configure \ $(CONFIGURE_FLAGS) \ + --build=i386-linux-gnu \ + --host=i386-linux-gnu \ --program-prefix="" \ --program-suffix="" \ --prefix=/usr \