diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-12-29 23:49:24 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-24 09:40:27 +0000 |
commit | 7509ffd3f9a9032221af430c928c00b8e1d23468 (patch) | |
tree | e69e944c5b0630796141de6d12c9614e8c6553bf /meta/recipes-extended | |
parent | 1d28cbc64705ae70845b221778d8e6da1c963c0d (diff) | |
download | poky-7509ffd3f9a9032221af430c928c00b8e1d23468.tar.gz |
gzip: Fix build with musl
gzip 1.6 uses an older version of gnulib when cross compiling it treats
fseeko as broken since it cant do runtime checks for it during configure
this only shows up on musl since for glibc since it has special check
for gnu c library, so we aid the system by telling it that fflush on
stdin works well with musl
Use NO_ASM to avoid textrels
Delete charset.alias for musl which is again another issue in gnulib not
knowing musl platform
(From OE-Core rev: cc41d3b14c7c325d09f10167c1910c9da814e932)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/gzip/gzip.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-extended/gzip/gzip.inc b/meta/recipes-extended/gzip/gzip.inc index 58e5e0c53b..6e81883472 100644 --- a/meta/recipes-extended/gzip/gzip.inc +++ b/meta/recipes-extended/gzip/gzip.inc | |||
@@ -6,8 +6,10 @@ SECTION = "console/utils" | |||
6 | # change to GPLv3+ in 2007/07. Previous GPLv2 version is 1.3.12 | 6 | # change to GPLv3+ in 2007/07. Previous GPLv2 version is 1.3.12 |
7 | 7 | ||
8 | inherit autotools texinfo | 8 | inherit autotools texinfo |
9 | export DEFS="NO_ASM" | ||
9 | 10 | ||
10 | EXTRA_OEMAKE_class-target = "GREP=${base_bindir}/grep" | 11 | EXTRA_OEMAKE_class-target = "GREP=${base_bindir}/grep" |
12 | EXTRA_OECONF_append_libc-musl = " gl_cv_func_fflush_stdin=yes " | ||
11 | 13 | ||
12 | do_install_append () { | 14 | do_install_append () { |
13 | if [ "${base_bindir}" != "${bindir}" ]; then | 15 | if [ "${base_bindir}" != "${bindir}" ]; then |
@@ -20,6 +22,11 @@ do_install_append () { | |||
20 | fi | 22 | fi |
21 | } | 23 | } |
22 | 24 | ||
25 | do_install_append_libc-musl () { | ||
26 | rm ${D}${libdir}/charset.alias | ||
27 | rmdir ${D}${libdir} | ||
28 | } | ||
29 | |||
23 | inherit update-alternatives | 30 | inherit update-alternatives |
24 | 31 | ||
25 | ALTERNATIVE_PRIORITY = "100" | 32 | ALTERNATIVE_PRIORITY = "100" |