X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=target%2Fimage%2Fx86%2Fgrub%2FMakefile;h=e30443e18cde99e76e45bde7073caf3e76b0d431;hb=00b9fc10fe104cb6b4c835fdf19f739121722ed6;hp=86a90016acee4e284f943435abdb9037116637d3;hpb=5cd5287c63bd0be72b4ae00fc1af508a2b42e541;p=openwrt-10.03%2F.git diff --git a/target/image/x86/grub/Makefile b/target/image/x86/grub/Makefile index 86a90016a..e30443e18 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)