tar: add IF_FEATURE_* checks
authorMing Liu <peter.x.liu@external.atlascopco.com>
Fri, 2 Jun 2017 08:47:23 +0000 (10:47 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 13 Jun 2017 17:13:37 +0000 (19:13 +0200)
commit978307f8a19084ffb6e977ee28c731445e37dbbd
tree367ff8dd42c7bb7b4f9c562f079b4a3e8ccfc6c2
parent192dce4b84fb32346ebc5194de7daa5da3b8d1b4
tar: add IF_FEATURE_* checks

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: Denys Vlasenko <vda.linux@googlemail.com>
archival/tar.c