mirror of
https://git.yoctoproject.org/poky
synced 2026-04-13 14:02:21 +02:00
expect: support native compilation
This is needed for building the swtpm TPM simulator (recipe in meta-security). "nativesdk" is added just in case that someone also wants this in an SDK. (From OE-Core rev: 4b43aab5b2043a5b83ef1fa9a8406f8a46ccfa72) Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
81507d8c2e
commit
fdd6d5daf1
@@ -43,11 +43,16 @@ do_install_append() {
|
||||
sed -e 's|$dir|${libdir}|' -i ${D}${libdir}/expect${PV}/pkgIndex.tcl
|
||||
}
|
||||
|
||||
# Apparently the public Tcl headers are only in /usr/include/tcl8.6
|
||||
# when building for the target.
|
||||
TCL_INCLUDE_PATH = ""
|
||||
TCL_INCLUDE_PATH_class-target = "--with-tclinclude=${STAGING_INCDIR}/tcl8.6"
|
||||
|
||||
EXTRA_OECONF += "--with-tcl=${STAGING_LIBDIR} \
|
||||
--with-tclinclude=${STAGING_INCDIR}/tcl8.6 \
|
||||
--enable-shared \
|
||||
--enable-threads \
|
||||
--disable-rpath \
|
||||
${TCL_INCLUDE_PATH} \
|
||||
"
|
||||
EXTRA_OEMAKE_install = " 'SCRIPTS=' "
|
||||
|
||||
@@ -62,3 +67,5 @@ FILES_${PN}-dev = "${libdir_native}/expect${PV}/libexpect*.so \
|
||||
FILES_${PN} += "${libdir}/libexpect${PV}.so \
|
||||
${libdir}/expect${PV}/* \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
Reference in New Issue
Block a user