summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2017-01-23 15:17:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-26 10:44:28 +0000
commitfdd6d5daf12d526b8ce4d1b1cdedd1628a8dfeb7 (patch)
tree2556ee5e733e90d162543cf8280fb985e41a82d6
parent81507d8c2e40e74aa1a81e4bc4dcc72c698d320f (diff)
downloadpoky-fdd6d5daf12d526b8ce4d1b1cdedd1628a8dfeb7.tar.gz
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>
-rw-r--r--meta/recipes-devtools/expect/expect_5.45.bb9
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/recipes-devtools/expect/expect_5.45.bb b/meta/recipes-devtools/expect/expect_5.45.bb
index b4dfe157ce..ab22a61394 100644
--- a/meta/recipes-devtools/expect/expect_5.45.bb
+++ b/meta/recipes-devtools/expect/expect_5.45.bb
@@ -43,11 +43,16 @@ do_install_append() {
43 sed -e 's|$dir|${libdir}|' -i ${D}${libdir}/expect${PV}/pkgIndex.tcl 43 sed -e 's|$dir|${libdir}|' -i ${D}${libdir}/expect${PV}/pkgIndex.tcl
44} 44}
45 45
46# Apparently the public Tcl headers are only in /usr/include/tcl8.6
47# when building for the target.
48TCL_INCLUDE_PATH = ""
49TCL_INCLUDE_PATH_class-target = "--with-tclinclude=${STAGING_INCDIR}/tcl8.6"
50
46EXTRA_OECONF += "--with-tcl=${STAGING_LIBDIR} \ 51EXTRA_OECONF += "--with-tcl=${STAGING_LIBDIR} \
47 --with-tclinclude=${STAGING_INCDIR}/tcl8.6 \
48 --enable-shared \ 52 --enable-shared \
49 --enable-threads \ 53 --enable-threads \
50 --disable-rpath \ 54 --disable-rpath \
55 ${TCL_INCLUDE_PATH} \
51 " 56 "
52EXTRA_OEMAKE_install = " 'SCRIPTS=' " 57EXTRA_OEMAKE_install = " 'SCRIPTS=' "
53 58
@@ -62,3 +67,5 @@ FILES_${PN}-dev = "${libdir_native}/expect${PV}/libexpect*.so \
62FILES_${PN} += "${libdir}/libexpect${PV}.so \ 67FILES_${PN} += "${libdir}/libexpect${PV}.so \
63 ${libdir}/expect${PV}/* \ 68 ${libdir}/expect${PV}/* \
64 " 69 "
70
71BBCLASSEXTEND = "native nativesdk"