[oe-commits] Tom Rini : tcl/tcl-native: Fix building when tclsh isn't on the system

git version control git at git.openembedded.org
Fri Oct 1 15:45:47 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 3eb2876906c04634ed2562ce867d394828046371
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=3eb2876906c04634ed2562ce867d394828046371

Author: Tom Rini <tom_rini at mentor.com>
Date:   Fri Oct  1 07:52:39 2010 -0700

tcl/tcl-native: Fix building when tclsh isn't on the system

We do want to change from using the tclsh we just built when building
for the target but for native we want to make sure it's used.

Acked-by: Martin Jansa <Martin.Jansa at gmail.com>
Signed-off-by: Tom Rini <tom_rini at mentor.com>

---

 recipes/tcltk/tcl_8.5.8.bb |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/recipes/tcltk/tcl_8.5.8.bb b/recipes/tcltk/tcl_8.5.8.bb
index 8630240..e98b98d 100644
--- a/recipes/tcltk/tcl_8.5.8.bb
+++ b/recipes/tcltk/tcl_8.5.8.bb
@@ -25,10 +25,14 @@ inherit autotools binconfig
 
 EXTRA_OECONF = "--enable-threads"
 
-do_compile_prepend() {
+do_configure_append() {
         echo > ../compat/fixstrtod.c
+}
+
+do_compile_prepend_pn-tcl () {
         sed -i -e 's:./tclsh :tclsh :g' Makefile
 }
+
 do_install() {
         autotools_do_install
         # Stage a few extra headers to make tk happy





More information about the Openembedded-commits mailing list