X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/ae1f46d43dfb8e013d29aff091b7261a8a420367..2c8bc797cbab9762311e47b3798530245875e5a6:/package/grub/Makefile?ds=sidebyside diff --git a/package/grub/Makefile b/package/grub/Makefile index 7dfd1429d..7e6f3527e 100644 --- a/package/grub/Makefile +++ b/package/grub/Makefile @@ -22,6 +22,8 @@ PKG_TARGETS:=bin include $(INCLUDE_DIR)/package.mk +export grub_cv_prog_objcopy_absolute=yes + define Package/grub SECTION:=boot DEPENDS:=@TARGET_x86 @@ -45,6 +47,7 @@ else CONFIGURE_FLAGS:= endif +ifneq ($(HOST_OS),Darwin) define Build/Configure (cd $(PKG_BUILD_DIR); \ LDFLAGS="-static" \ @@ -83,5 +86,6 @@ define Build/InstallDev install mv $(STAGING_DIR_HOST)/usr/sbin/grub $(STAGING_DIR_HOST)/bin endef +endif $(eval $(call BuildPackage,grub))