libiconv: Extend to nativesdk and support non-linux targets
This library is currently only available when targeting non-libc. This patch also makes it available when targetting non-linux since it is likely of use then. It also adds a BBCLASSEXTEND for nativesdk since again, it can be useful in that context. (From OE-Core rev: af8c5adc71dc9bab57504d5a9dbf9e863fd4bf7b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
24b1fe929b
commit
9967b4e027
|
@ -22,6 +22,8 @@ S = "${WORKDIR}/libiconv-${PV}"
|
|||
inherit autotools pkgconfig gettext
|
||||
|
||||
python __anonymous() {
|
||||
if d.getVar("TARGET_OS", True) != "linux":
|
||||
return
|
||||
if d.getVar("TCLIBC", True) == "eglibc":
|
||||
raise bb.parse.SkipPackage("libiconv is provided for use with uClibc only - eglibc already provides iconv")
|
||||
}
|
||||
|
@ -44,3 +46,5 @@ do_install_append () {
|
|||
rm -rf ${D}${libdir}/preloadable_libiconv.so
|
||||
rm -rf ${D}${libdir}/charset.alias
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "nativesdk"
|
||||
|
|
Loading…
Reference in New Issue