tcl: fix to point to the correct private headers

Submitted by Saul Wold on Dec. 5, 2013, 4:26 p.m. | Patch ID: 62923


Message ID
State Accepted
Commit 300760193c6bcfd20f1d4908f912bebd53e86281
Headers show

Commit Message

Saul Wold Dec. 5, 2013, 4:26 p.m.
When building expect with rm_work enabled, it was not finding the correct private
header files because they were removed from the WORKDIR, this fixes the
to point to the sysroot private area instead.

This also fixes the -L directory to point to STAGING_LIBDIR instead if INCDIR!

[YOCTO #5620]

Signed-off-by: Saul Wold <>
 meta/recipes-devtools/tcltk/ | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/meta/recipes-devtools/tcltk/ b/meta/recipes-devtools/tcltk/
index 10186c4..0d6468a 100644
--- a/meta/recipes-devtools/tcltk/
+++ b/meta/recipes-devtools/tcltk/
@@ -48,11 +48,13 @@  do_compile_prepend() {
 do_install() {
 	autotools_do_install install-private-headers
 	ln -sf ./tclsh${VER} ${D}${bindir}/tclsh
+	sed -i "s+-L${B}+-L${STAGING_LIBDIR}+g"
 	sed -i "s+${WORKDIR}+${STAGING_INCDIR}+g"
 	sed -i "s,-L${libdir},-L=${libdir},g"
 	sed -i "s,-I${includedir},-I=${includedir},g" 
 	install -d ${D}${bindir_crossscripts}
 	install -m 0755 ${D}${bindir_crossscripts}
+	install -m 0755 ${D}${libdir}
 	cd ..
 	for dir in compat generic unix