mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-30 13:00:02 +00:00
tk: make multilib build compatible and fix library install
Pass libdir to EXTRA_OECONF so that recipe generates the correct library folder in a multilib build. Install shared library symbolic link to image. Signed-off-by: Nick D'Ademo <nickdademo@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
ac02c64e31
commit
1ca29d1cda
@@ -24,18 +24,31 @@ EXTRA_OECONF = "\
|
|||||||
--enable-threads \
|
--enable-threads \
|
||||||
--with-x \
|
--with-x \
|
||||||
--with-tcl=${STAGING_BINDIR_CROSS} \
|
--with-tcl=${STAGING_BINDIR_CROSS} \
|
||||||
|
--libdir=${libdir} \
|
||||||
"
|
"
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
mv libtk8.6.so libtk8.6.so.0
|
ln -sf libtk8.6.so ${D}${libdir}/libtk8.6.so.0
|
||||||
oe_libinstall -so libtk8.6 ${D}${libdir}
|
oe_libinstall -so libtk8.6 ${D}${libdir}
|
||||||
ln -sf wish8.6 ${D}${bindir}/wish
|
ln -sf wish8.6 ${D}${bindir}/wish
|
||||||
|
|
||||||
|
# Even after passing libdir=${libdir} at config, some incorrect dirs are still generated for the multilib build
|
||||||
|
if [ "$libdir" != "/usr/lib" ]; then
|
||||||
|
# Move files to correct library directory
|
||||||
|
mv ${D}/usr/lib/tk8.6/* ${D}/${libdir}/tk8.6/
|
||||||
|
# Remove unneeded/incorrect dir ('usr/lib/')
|
||||||
|
rm -rf ${D}/usr/lib
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
PACKAGES =+ "${PN}-lib"
|
PACKAGES =+ "${PN}-lib"
|
||||||
|
|
||||||
FILES_${PN}-lib = "${libdir}/libtk8.6.so.*"
|
FILES_${PN}-lib = "${libdir}/libtk8.6.so*"
|
||||||
FILES_${PN} += "${libdir}/tk*"
|
FILES_${PN} += "${libdir}/tk*"
|
||||||
|
|
||||||
|
# isn't getting picked up by shlibs code
|
||||||
|
RDEPENDS_${PN} += "tk-lib"
|
||||||
|
RDEPENDS_${PN}_class-native = ""
|
||||||
|
|
||||||
BINCONFIG_GLOB = "*Config.sh"
|
BINCONFIG_GLOB = "*Config.sh"
|
||||||
BBCLASSEXTEND = "native"
|
BBCLASSEXTEND = "native"
|
||||||
|
|||||||
Reference in New Issue
Block a user