diff options
Diffstat (limited to 'meta-oe/recipes-devtools/tcltk/tk-8.5.8/non-linux.diff')
-rw-r--r-- | meta-oe/recipes-devtools/tcltk/tk-8.5.8/non-linux.diff | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/tcltk/tk-8.5.8/non-linux.diff b/meta-oe/recipes-devtools/tcltk/tk-8.5.8/non-linux.diff new file mode 100644 index 0000000000..9309fc48e1 --- /dev/null +++ b/meta-oe/recipes-devtools/tcltk/tk-8.5.8/non-linux.diff | |||
@@ -0,0 +1,45 @@ | |||
1 | Patch by Sergei Golovan (originally by Mike Markley and Chris Waters) fixes | ||
2 | building on non-linux Debian architectures. | ||
3 | |||
4 | --- tk8.5-8.5.8.orig/unix/configure | ||
5 | +++ tk8.5-8.5.8/unix/configure | ||
6 | @@ -4742,6 +4742,9 @@ | ||
7 | if test "`uname -s`" = "AIX" ; then | ||
8 | tcl_cv_sys_version=AIX-`uname -v`.`uname -r` | ||
9 | fi | ||
10 | + if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then | ||
11 | + tcl_cv_sys_version=NetBSD-Debian | ||
12 | + fi | ||
13 | fi | ||
14 | fi | ||
15 | |||
16 | @@ -5546,7 +5549,7 @@ | ||
17 | fi | ||
18 | |||
19 | ;; | ||
20 | - Linux*) | ||
21 | + Linux*|GNU*|NetBSD-Debian) | ||
22 | SHLIB_CFLAGS="-fPIC" | ||
23 | SHLIB_LD_LIBS='${LIBS}' | ||
24 | SHLIB_SUFFIX=".so" | ||
25 | --- tk8.5-8.5.8.orig/unix/tcl.m4 | ||
26 | +++ tk8.5-8.5.8/unix/tcl.m4 | ||
27 | @@ -962,6 +962,9 @@ | ||
28 | if test "`uname -s`" = "AIX" ; then | ||
29 | tcl_cv_sys_version=AIX-`uname -v`.`uname -r` | ||
30 | fi | ||
31 | + if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then | ||
32 | + tcl_cv_sys_version=NetBSD-Debian | ||
33 | + fi | ||
34 | fi | ||
35 | fi | ||
36 | ]) | ||
37 | @@ -1422,7 +1425,7 @@ | ||
38 | ]) | ||
39 | ]) | ||
40 | ;; | ||
41 | - Linux*) | ||
42 | + Linux*|GNU*|NetBSD-Debian) | ||
43 | SHLIB_CFLAGS="-fPIC" | ||
44 | SHLIB_LD_LIBS='${LIBS}' | ||
45 | SHLIB_SUFFIX=".so" | ||