mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-04 06:10:16 +03:00
mkfs.axfs uses zlib, but does not have an rpath to our host dir.
That's because:
- we're not passing our host CFLAGS or LDFLAGS
- it is forcibly setting CFLAGS in the Makefile, overriding anything
specified by the user
- it is not using LDFLAGS at all
Add two patches so that CFLAGS and LDFLAGS from the environment are
used if present.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
25 lines
848 B
Makefile
25 lines
848 B
Makefile
################################################################################
|
|
#
|
|
# axfsutils
|
|
#
|
|
################################################################################
|
|
|
|
AXFSUTILS_VERSION = f26ae785e33df76f658b71ef2cfbc7f511ff875d
|
|
AXFSUTILS_SITE = $(call github,jaredeh,axfs,$(AXFSUTILS_VERSION))
|
|
AXFSUTILS_LICENSE = GPLv2
|
|
AXFSUTILS_LICENSE_FILES = mkfs.axfs-legacy/COPYING
|
|
AXFSUTILS_DEPENDENCIES = host-zlib
|
|
|
|
# The 'new' mkfs.axfs version requires GNUstep which is not a buildroot
|
|
# prerequisite. The 'legacy' one works just as well without that requirement.
|
|
define HOST_AXFSUTILS_BUILD_CMDS
|
|
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D)/mkfs.axfs-legacy
|
|
endef
|
|
|
|
define HOST_AXFSUTILS_INSTALL_CMDS
|
|
$(INSTALL) -D -m 0755 $(@D)/mkfs.axfs-legacy/mkfs.axfs \
|
|
$(HOST_DIR)/usr/bin/mkfs.axfs
|
|
endef
|
|
|
|
$(eval $(host-generic-package))
|