]> code.ossystems Code Review - openembedded-core.git/commit
busybox: fix a linking issue
authorMing Liu <peter.x.liu@external.atlascopco.com>
Tue, 6 Jun 2017 03:21:18 +0000 (05:21 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 9 Jun 2017 16:12:05 +0000 (17:12 +0100)
commit789254b5ae983a94346f53de18286713b80eb5f2
treeceb21e19c71152e72a8041c16b0de1694fdc6099
parentdee3c29071017b4d12c02b711c5e42ca96e0578d
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>
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