From: Romain Naour <romain.naour@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 1/3] package/make: add host variant
Date: Mon, 3 Sep 2018 21:19:31 +0200 [thread overview]
Message-ID: <20180903191933.26080-1-romain.naour@gmail.com> (raw)
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>
---
package/make/make.mk | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/package/make/make.mk b/package/make/make.mk
index 01cd2eaa18..790391c76e 100644
--- a/package/make/make.mk
+++ b/package/make/make.mk
@@ -20,4 +20,18 @@ 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))
--
2.14.4
next reply other threads:[~2018-09-03 19:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-03 19:19 Romain Naour [this message]
2018-09-03 19:19 ` [Buildroot] [PATCH v2 2/3] dependencies: host-make version check Romain Naour
2018-09-04 0:10 ` Cam Hutchison
2018-09-05 1:39 ` Matthew Weber
2018-09-08 21:37 ` Thomas Petazzoni
2018-09-03 19:19 ` [Buildroot] [PATCH v2 3/3] package/glibc: allow to specify host-make Romain Naour
2018-09-05 1:40 ` Matthew Weber
2018-09-08 21:38 ` Thomas Petazzoni
2018-09-03 19:55 ` [Buildroot] [PATCH v2 1/3] package/make: add host variant Matthew Weber
2018-09-03 21:35 ` Arnout Vandecappelle
2018-09-04 8:27 ` Thomas Petazzoni
2018-09-04 13:44 ` Matthew Weber
2018-09-05 1:39 ` Matthew Weber
2018-09-08 21:37 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180903191933.26080-1-romain.naour@gmail.com \
--to=romain.naour@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox