From a8339e56e1c634fffc576a97e1705f18564f4a18 Mon Sep 17 00:00:00 2001 From: Saul Wold Date: Wed, 1 Sep 2010 13:55:36 -0700 Subject: tcl: fix from missing sys/fpu.h and undefined mipsCR Signed-off-by: Saul Wold --- .../tcltk/tcl/mips-tclstrtod.patch | 28 ++++++++++++++++++++++ meta/recipes-devtools/tcltk/tcl_8.5.8.bb | 5 ++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-devtools/tcltk/tcl/mips-tclstrtod.patch (limited to 'meta/recipes-devtools/tcltk') diff --git a/meta/recipes-devtools/tcltk/tcl/mips-tclstrtod.patch b/meta/recipes-devtools/tcltk/tcl/mips-tclstrtod.patch new file mode 100644 index 0000000000..c1e0d63324 --- /dev/null +++ b/meta/recipes-devtools/tcltk/tcl/mips-tclstrtod.patch @@ -0,0 +1,28 @@ +http://sourceforge.net/tracker/index.php?func=detail&aid=2902010&group_id=10894&atid=110894 + +Pulled from OE by: Saul Wold + +--- ../generic/tclStrToD.c.orig ++++ ../generic/tclStrToD.c +@@ -71,9 +71,10 @@ + + /* + * MIPS floating-point units need special settings in control registers +- * to use gradual underflow as we expect. ++ * to use gradual underflow as we expect. This fix is for the MIPSpro ++ * compiler. + */ +-#if defined(__mips) ++#if defined(__sgi) && defined(_COMPILER_VERSION) + #include + #endif + /* +@@ -2166,7 +2167,7 @@ + } bitwhack; + #endif + +-#if defined(__mips) ++#if defined(__sgi) && defined(_COMPILER_VERSION) + union fpc_csr mipsCR; + + mipsCR.fc_word = get_fpc_csr(); diff --git a/meta/recipes-devtools/tcltk/tcl_8.5.8.bb b/meta/recipes-devtools/tcltk/tcl_8.5.8.bb index 880340067c..afc76649df 100644 --- a/meta/recipes-devtools/tcltk/tcl_8.5.8.bb +++ b/meta/recipes-devtools/tcltk/tcl_8.5.8.bb @@ -11,13 +11,14 @@ LIC_CHKSUM_FILES = "file://../license.terms;md5=7b4d3c71b2d9a8c1b373609867975570 file://../win/license.terms;md5=7b4d3c71b2d9a8c1b373609867975570 \ " -PR = "r2" +PR = "r3" BASE_SRC_URI = "${SOURCEFORGE_MIRROR}/tcl/tcl${PV}-src.tar.gz \ file://tcl-add-soname.patch" SRC_URI = "${BASE_SRC_URI} \ - file://fix_non_native_build_issue.patch" + file://fix_non_native_build_issue.patch \ + file://mips-tclstrtod.patch;striplevel=0" SRC_URI_virtclass-native = "${BASE_SRC_URI}" -- cgit v1.2.3-54-g00ecf