05167a9ffa
Add host variant for make package since glibc 2.28 now require GNU Make >= 4.0 [1]. We have to ceate gnumake and gmake symlinks to GNU make generated by Buildroot for the host. Otherwise the one provided by the host system can be used instead. For example, the glibc build system is looking for gnumake and gmake before make. See [2]. [1] https://www.sourceware.org/ml/libc-alpha/2018-08/msg00003.html [2] http://lists.busybox.net/pipermail/buildroot/2018-September/229654.html Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Baruch Siach <baruch@tkos.co.il> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Tested-by: Matt Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
38 lines
1.1 KiB
Makefile
38 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# make
|
|
#
|
|
################################################################################
|
|
|
|
MAKE_VERSION = 4.2.1
|
|
MAKE_SOURCE = make-$(MAKE_VERSION).tar.bz2
|
|
MAKE_SITE = $(BR2_GNU_MIRROR)/make
|
|
MAKE_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) host-pkgconf
|
|
MAKE_LICENSE = GPL-3.0+
|
|
MAKE_LICENSE_FILES = COPYING
|
|
# Patching configure.ac
|
|
MAKE_AUTORECONF = YES
|
|
|
|
MAKE_CONF_OPTS = --without-guile
|
|
|
|
# Disable the 'load' operation for static builds since it needs dlopen
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
MAKE_CONF_OPTS += --disable-load
|
|
endif
|
|
|
|
HOST_MAKE_DEPENDENCIES = host-pkgconf
|
|
HOST_MAKE_CONF_OPTS = --without-guile
|
|
|
|
# Some packages, like glibc, are looking for gnumake or gmake before
|
|
# make program.
|
|
# Create these symlink to use make binary generated by Buildroot for
|
|
# the host.
|
|
define HOST_MAKE_INSTALL_GNUMAKE
|
|
ln -fs make $(HOST_DIR)/bin/gnumake
|
|
ln -fs make $(HOST_DIR)/bin/gmake
|
|
endef
|
|
HOST_MAKE_POST_INSTALL_HOOKS += HOST_MAKE_INSTALL_GNUMAKE
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|