mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
attr: Fix compilation on uclibc
It needs -lintl added to LDFLAGS for uclibc inherit gettext class instead of adding gettext to DEPENDS directly (From OE-Core rev: 53f421bd2a7dc4caf8cbf4ea1b04cf00ea158b2c) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -20,3 +20,7 @@ do_install_append() {
|
|||||||
sed -i ${D}${libdir}/libattr.la -e \
|
sed -i ${D}${libdir}/libattr.la -e \
|
||||||
s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\',
|
s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Only append ldflags for target recipe
|
||||||
|
LDFLAGS_libc-uclibc += "${@['', '-lintl']['${PN}' == '${BPN}']}"
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
# this build system is mostly shared by attr and acl
|
# this build system is mostly shared by attr and acl
|
||||||
|
|
||||||
DEPENDS =+ "gettext"
|
|
||||||
|
|
||||||
SRC_URI += "file://relative-libdir.patch;striplevel=0 \
|
SRC_URI += "file://relative-libdir.patch;striplevel=0 \
|
||||||
file://no-fixed-prog-path.patch"
|
file://no-fixed-prog-path.patch"
|
||||||
|
|
||||||
inherit autotools
|
inherit autotools gettext
|
||||||
|
|
||||||
# the package comes with a custom config.h.in, it cannot be
|
# the package comes with a custom config.h.in, it cannot be
|
||||||
# overwritten by autoheader
|
# overwritten by autoheader
|
||||||
|
|||||||
Reference in New Issue
Block a user