Conan_Kudo / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

8af204 patches/tcl-8.7a1.local.patch:unix/configure: correctly handle dynamic linking on midipix.

Authored and Committed by Lucio Andrés Illanes Albornoz 6 years ago
    patches/tcl-8.7a1.local.patch:unix/configure: correctly handle dynamic linking on midipix.
    vars/tcl.vars:${PKG_CONFIG_CACHE}: adds tcl_cv_strtod_{buggy,unbroken}={false,true}.
    
        
file modified
+39 -9
patches/tcl-8.7a1.local.patch CHANGED
@@ -1,5 +1,5 @@
1
1
--- unix/configure.orig 2017-09-07 12:54:11.000000000 +0000
2
- +++ unix/configure 2018-01-22 18:01:25.880000000 +0000
2
+ +++ unix/configure 2018-05-29 14:55:16.464000000 +0000
3
3
@@ -3957,7 +3957,7 @@
4
4
5
5
$as_echo "#define _REENTRANT 1" >>confdefs.h
@@ -25,7 +25,37 @@
25
25
tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
26
26
fi
27
27
fi
28
- @@ -7429,7 +7429,7 @@
28
+ @@ -5718,6 +5718,29 @@
29
+ LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
30
+ fi
31
+ ;;
32
+ + *-midipix-*)
33
+ + SHLIB_CFLAGS="-fPIC"
34
+ + SHLIB_SUFFIX=".so"
35
+ +
36
+ + CFLAGS_OPTIMIZE="-O2"
37
+ +
38
+ + SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
39
+ + DL_OBJS="tclLoadDl.o"
40
+ + DL_LIBS="-ldl"
41
+ + LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
42
+ + if test $do64bit = yes; then :
43
+ +
44
+ + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
45
+ +$as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
46
+ +if ${tcl_cv_cc_m64+:} false; then :
47
+ + $as_echo_n "(cached) " >&6
48
+ +else
49
+ + tcl_cv_cc_m64=no
50
+ +fi
51
+ +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
52
+ +$as_echo "$tcl_cv_cc_m64" >&6; }
53
+ +fi
54
+ + ;;
55
+ OpenBSD-*)
56
+ arch=`arch -s`
57
+ case "$arch" in
58
+ @@ -7429,7 +7452,7 @@
29
59
fi
30
60
31
61
@@ -34,7 +64,7 @@
34
64
test "`uname -r | awk -F. '{print $1}'`" -lt 7; then
35
65
# prior to Darwin 7, realpath is not threadsafe, so don't
36
66
# use it when threads are enabled, c.f. bug # 711232
37
- @@ -7937,7 +7937,7 @@
67
+ @@ -7937,7 +7960,7 @@
38
68
39
69
fi
40
70
@@ -43,7 +73,7 @@
43
73
test "`uname -r | awk -F. '{print $1}'`" -gt 5; then
44
74
# Starting with Darwin 6 (Mac OSX 10.2), gethostbyX
45
75
# are actually MT-safe as they always return pointers
46
- @@ -7949,7 +7949,7 @@
76
+ @@ -7949,7 +7972,7 @@
47
77
$as_echo "#define HAVE_MTSAFE_GETHOSTBYADDR 1" >>confdefs.h
48
78
49
79
@@ -52,7 +82,7 @@
52
82
test "`uname -r|sed -e 's|B\.||' -e 's|\..*$||'`" -gt 10; then
53
83
# Starting with HPUX 11.00 (we believe), gethostbyX
54
84
# are actually MT-safe as they always return pointers
55
- @@ -8330,7 +8330,7 @@
85
+ @@ -8330,7 +8353,7 @@
56
86
57
87
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for advanced notifier support" >&5
58
88
$as_echo_n "checking for advanced notifier support... " >&6; }
@@ -61,7 +91,7 @@
61
91
xLinux)
62
92
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: epoll(7)" >&5
63
93
$as_echo "epoll(7)" >&6; }
64
- @@ -9676,7 +9676,7 @@
94
+ @@ -9676,7 +9699,7 @@
65
95
# Darwin specific API checks and defines
66
96
#--------------------------------------------------------------------
67
97
@@ -70,7 +100,7 @@
70
100
for ac_func in getattrlist
71
101
do :
72
102
ac_fn_c_check_func "$LINENO" "getattrlist" "ac_cv_func_getattrlist"
73
- @@ -9942,13 +9942,13 @@
103
+ @@ -9942,13 +9965,13 @@
74
104
if test "${TEA_PLATFORM}" = "windows" ; then
75
105
tcl_cv_sys_version=windows
76
106
else
@@ -86,7 +116,7 @@
86
116
tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
87
117
fi
88
118
fi
89
- @@ -10133,9 +10133,9 @@
119
+ @@ -10133,9 +10156,9 @@
90
120
91
121
DTRACE_SRC="\${DTRACE_SRC}"
92
122
DTRACE_HDR="\${DTRACE_HDR}"
@@ -98,7 +128,7 @@
98
128
# Need to create an intermediate object file to ensure tclDTrace.o
99
129
# gets included when linking against the static tcl library.
100
130
STLIB_LD='stlib_ld () { /usr/ccs/bin/ld -r -o $${1%.a}.o "$${@:2}" && '"${STLIB_LD}"' $${1} $${1%.a}.o ; } && stlib_ld'
101
- @@ -10219,9 +10219,9 @@
131
+ @@ -10219,9 +10242,9 @@
102
132
# AIX remembers this path and will attempt to use it at run-time to look
103
133
# up the Tcl library.
104
134
file added
+9
vars/tcl.vars ADDED
@@ -0,0 +1,9 @@
1
+ #
2
+ # set -o errexit -o noglob are assumed.
3
+ #
4
+
5
+ : ${PKG_TCL_CONFIG_CACHE_EXTRA:="
6
+ tcl_cv_strtod_buggy=false
7
+ tcl_cv_strtod_unbroken=true"};
8
+
9
+ # vim:filetype=sh