[OE-core] [PATCH v2 4/4] tcl: clean host path in tclConfig.sh

wenzong.fan at windriver.com wenzong.fan at windriver.com
Fri Nov 14 09:44:06 UTC 2014


From: Shiqun Lin <Shiqun.Lin at windriver.com>

* /usr/bin/crossscripts/tclConfig.sh

Signed-off-by: Shiqun Lin <Shiqun.Lin at windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan at windriver.com>
---
 meta/recipes-devtools/tcltk/tcl_8.6.2.bb |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-devtools/tcltk/tcl_8.6.2.bb b/meta/recipes-devtools/tcltk/tcl_8.6.2.bb
index 75fef01..34f3e87 100644
--- a/meta/recipes-devtools/tcltk/tcl_8.6.2.bb
+++ b/meta/recipes-devtools/tcltk/tcl_8.6.2.bb
@@ -58,6 +58,11 @@ do_install() {
 	sed -i "s+${WORKDIR}+${STAGING_INCDIR}+g" tclConfig.sh
 	sed -i "s,-L${libdir},-L=${libdir},g" tclConfig.sh
 	sed -i "s,-I${includedir},-I=${includedir},g" tclConfig.sh
+	sed -i "/TCL_CC/s,\(--sysroot=\).*,--sysroot= '," tclConfig.sh
+	sed -i "/TCL_BUILD_LIB_SPEC/s,-L${STAGING_LIBDIR},-L${libdir}," tclConfig.sh
+	sed -i "/TCL_SRC_DIR/s,${STAGING_INCDIR},${includedir}," tclConfig.sh
+	sed -i "/TCL_BUILD_STUB_LIB_SPEC/s,-L${STAGING_LIBDIR},-L${libdir}," tclConfig.sh
+	sed -i "/TCL_BUILD_STUB_LIB_PATH/s,${STAGING_INCDIR},${includedir}," tclConfig.sh
 	install -d ${D}${bindir_crossscripts}
 	install -m 0755 tclConfig.sh ${D}${bindir_crossscripts}
 	install -m 0755 tclConfig.sh ${D}${libdir}
-- 
1.7.9.5




More information about the Openembedded-core mailing list