acl,attr: Fix build failures when NLS is disabled on uclibc
Disable gettext support when NLS is not enabled (From OE-Core rev: f7de0a4f02cfd021176759fc4ea7ebbc88da8ff8) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
0de9f32aee
commit
caf22e3ba2
|
@ -1,6 +1,6 @@
|
|||
require acl.inc
|
||||
|
||||
PR = "r0"
|
||||
PR = "r1"
|
||||
|
||||
SRC_URI[md5sum] = "3fc0ce99dc5253bdcce4c9cd437bc267"
|
||||
SRC_URI[sha256sum] = "06854521cf5d396801af7e54b9636680edf8064355e51c07657ec7442a185225"
|
||||
|
|
|
@ -20,7 +20,3 @@ do_install_append() {
|
|||
sed -i ${D}${libdir}/libattr.la -e \
|
||||
s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\',
|
||||
}
|
||||
|
||||
# Only append ldflags for target recipe
|
||||
LDFLAGS_libc-uclibc += "${@['', '-lintl']['${PN}' == '${BPN}']}"
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require attr.inc
|
||||
|
||||
PR = "r0"
|
||||
PR = "r1"
|
||||
|
||||
SRC_URI[md5sum] = "db557c17fdfa4f785333ecda08654010"
|
||||
SRC_URI[sha256sum] = "dcd69bdca7ff166bc45141eddbcf21967999a6b66b0544be12a1cc2fd6340e1f"
|
||||
|
|
|
@ -32,3 +32,6 @@ FILES_lib${PN}-doc = "${mandir}/man2 \
|
|||
${mandir}/man3"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
# Only append ldflags for target recipe and if USE_NLS is enabled
|
||||
LDFLAGS_append_libc-uclibc = "${@['', ' -lintl '][(bb.data.getVar('PN', d, True) == bb.data.getVar('BPN', d , True)) and (bb.data.getVar('USE_NLS', d, True) == 'yes')]}"
|
||||
EXTRA_OECONF_append_libc-uclibc = "${@['', ' --disable-gettext '][(bb.data.getVar('PN', d, True) == bb.data.getVar('BPN', d , True)) and (bb.data.getVar('USE_NLS', d, True) == 'no')]}"
|
||||
|
|
Loading…
Reference in New Issue