]> code.ossystems Code Review - openembedded-core.git/commit
busybox: fix a linking issue
authorMing Liu <peter.x.liu@external.atlascopco.com>
Fri, 6 Oct 2017 12:12:44 +0000 (13:12 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 5 Nov 2017 22:39:20 +0000 (22:39 +0000)
commit5e9e8b336931335c660733a269c59ae0547019bd
treed55280527d984e63bb306a37e16c99f28d118172
parentc33426e2011054043c276c72b8af651a9aa179ad
busybox: fix a linking issue

A following linking error was observed:
| ==========
| archival/lib.a(tar.o): In function `tar_main':
| archival/tar.c:1168: undefined reference to `unpack_Z_stream'
| archival/tar.c:1168: undefined reference to `unpack_Z_stream'
| ld: busybox_unstripped: hidden symbol `unpack_Z_stream' isn't defined
| ld: final link failed: Bad value

this happened with clang compiler, with the following configs:
| CONFIG_TAR=y
| # CONFIG_FEATURE_SEAMLESS_Z is not set

which can be fixed by adding IF_FEATURE_* checks in.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 789254b5ae983a94346f53de18286713b80eb5f2)
Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-core/busybox/busybox/busybox-tar-add-IF_FEATURE_-checks.patch [new file with mode: 0644]
meta/recipes-core/busybox/busybox_1.24.1.bb