summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/tcltk
diff options
context:
space:
mode:
authorSaul Wold <Saul.Wold@intel.com>2010-09-01 13:55:36 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-02 09:52:30 +0100
commita8339e56e1c634fffc576a97e1705f18564f4a18 (patch)
treed7b4ab0000ba67119d96f38ba414e97f3056bd53 /meta/recipes-devtools/tcltk
parentd3fd98efd5d64570536ab275dac72ec84a5aad77 (diff)
downloadpoky-a8339e56e1c634fffc576a97e1705f18564f4a18.tar.gz
tcl: fix from missing sys/fpu.h and undefined mipsCR
Signed-off-by: Saul Wold <Saul.Wold@intel.com>
Diffstat (limited to 'meta/recipes-devtools/tcltk')
-rw-r--r--meta/recipes-devtools/tcltk/tcl/mips-tclstrtod.patch28
-rw-r--r--meta/recipes-devtools/tcltk/tcl_8.5.8.bb5
2 files changed, 31 insertions, 2 deletions
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 @@
1http://sourceforge.net/tracker/index.php?func=detail&aid=2902010&group_id=10894&atid=110894
2
3Pulled from OE by: Saul Wold <saul.wold@intel.com>
4
5--- ../generic/tclStrToD.c.orig
6+++ ../generic/tclStrToD.c
7@@ -71,9 +71,10 @@
8
9 /*
10 * MIPS floating-point units need special settings in control registers
11- * to use gradual underflow as we expect.
12+ * to use gradual underflow as we expect. This fix is for the MIPSpro
13+ * compiler.
14 */
15-#if defined(__mips)
16+#if defined(__sgi) && defined(_COMPILER_VERSION)
17 #include <sys/fpu.h>
18 #endif
19 /*
20@@ -2166,7 +2167,7 @@
21 } bitwhack;
22 #endif
23
24-#if defined(__mips)
25+#if defined(__sgi) && defined(_COMPILER_VERSION)
26 union fpc_csr mipsCR;
27
28 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
11 file://../win/license.terms;md5=7b4d3c71b2d9a8c1b373609867975570 \ 11 file://../win/license.terms;md5=7b4d3c71b2d9a8c1b373609867975570 \
12 " 12 "
13 13
14PR = "r2" 14PR = "r3"
15 15
16BASE_SRC_URI = "${SOURCEFORGE_MIRROR}/tcl/tcl${PV}-src.tar.gz \ 16BASE_SRC_URI = "${SOURCEFORGE_MIRROR}/tcl/tcl${PV}-src.tar.gz \
17 file://tcl-add-soname.patch" 17 file://tcl-add-soname.patch"
18 18
19SRC_URI = "${BASE_SRC_URI} \ 19SRC_URI = "${BASE_SRC_URI} \
20 file://fix_non_native_build_issue.patch" 20 file://fix_non_native_build_issue.patch \
21 file://mips-tclstrtod.patch;striplevel=0"
21 22
22SRC_URI_virtclass-native = "${BASE_SRC_URI}" 23SRC_URI_virtclass-native = "${BASE_SRC_URI}"
23 24