diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-10-14 23:06:23 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-10-14 23:06:23 +0000 |
commit | 0021e6cb9bf47c868c789c90892931e5988cd13c (patch) | |
tree | f9beb9aaa1a60e84db6b79278632c060e3582196 | |
parent | 0a9714b58ca2dd739b8e0e662ce0a77e11ca4a1f (diff) | |
download | master-187ad058-0021e6cb9bf47c868c789c90892931e5988cd13c.tar.gz master-187ad058-0021e6cb9bf47c868c789c90892931e5988cd13c.tar.bz2 master-187ad058-0021e6cb9bf47c868c789c90892931e5988cd13c.zip |
use the native toolchain for grub on non-amd64 hosts
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5103 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/image/x86/grub/Makefile | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/target/image/x86/grub/Makefile b/target/image/x86/grub/Makefile index 86a90016ac..e30443e18c 100644 --- a/target/image/x86/grub/Makefile +++ b/target/image/x86/grub/Makefile @@ -22,7 +22,8 @@ PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/grub-$(PKG_VERSION) include $(INCLUDE_DIR)/package.mk -define Build/Configure +ifeq ($(HOST_ARCH),x86_64) + define Build/Configure (cd $(PKG_BUILD_DIR); \ LDFLAGS="-static" \ ./configure \ @@ -43,7 +44,27 @@ define Build/Configure --infodir=/usr/info \ $(DISABLE_NLS) \ ) -endef + endef +else + define Build/Configure + (cd $(PKG_BUILD_DIR); \ + LDFLAGS="-static" \ + ./configure \ + --program-prefix="" \ + --program-suffix="" \ + --prefix=/usr \ + --exec-prefix=/usr \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ + --libexecdir=/usr/lib \ + --sysconfdir=/etc \ + --datadir=/usr/share \ + --localstatedir=/var \ + --mandir=/usr/man \ + --infodir=/usr/info \ + ) + endef +endif define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) |