summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2018-11-17 18:15:50 +0100
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-11-24 15:14:53 +0100
commit170160633efbf25b356c094d9e136b435d3142f1 (patch)
tree5bd9c0ea2effb377be91b434630f031394d98123
parentc3af08639505ca826f0d005eedc863d73c95daff (diff)
downloadbuildroot-170160633efbf25b356c094d9e136b435d3142f1.tar.gz
buildroot-170160633efbf25b356c094d9e136b435d3142f1.zip
package/gzip: add host variant
In case someone is building on a musl-based distro (Alpine), we do as for the target variant, and force the fflush_stdin detection. We however do not do the /bin/sh trick, because we are building natively, so the shell check is working. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/gzip/gzip.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/gzip/gzip.mk b/package/gzip/gzip.mk
index d48cb1aa15..8ac6ddd6ed 100644
--- a/package/gzip/gzip.mk
+++ b/package/gzip/gzip.mk
@@ -12,6 +12,7 @@ GZIP_CONF_OPTS = --exec-prefix=/
GZIP_LICENSE = GPL-3.0+
GZIP_LICENSE_FILES = COPYING
GZIP_CONF_ENV += gl_cv_func_fflush_stdin=yes
+HOST_GZIP_CONF_ENV += gl_cv_func_fflush_stdin=yes
# configure substitutes $(SHELL) for the shell shebang in scripts like
# gzexe. Unfortunately, the same $(SHELL) variable will also be used by
# make to run its commands. Fortunately, /bin/sh is always a POSIX shell
@@ -21,3 +22,4 @@ GZIP_CONF_ENV += gl_cv_func_fflush_stdin=yes
GZIP_CONF_ENV += ac_cv_path_shell=/bin/sh
$(eval $(autotools-package))
+$(eval $(host-autotools-package))
OpenPOWER on IntegriCloud