xref: /OK3568_Linux_fs/buildroot/package/tcl/0001-dont-build-compat.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From: Andrew Ruder <andrew.ruder@elecsyscorp.com>
2Subject: [PATCH] Disable tcl compatibility layers
3
4Turn off building compatibility layers for old/broken versions of
5standard functions (strstr, strtoul, strtod) with the assumption that
6anything buildroot is using as a standard C library will be good enough
7to not have broken behavior.
8
9Signed-off-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
10[Fabrice: Update for 8.6.9]
11Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
12---
13
14diff --git a/unix/tcl.m4 b/unix/tcl.m4
15--- a/unix/tcl.m4
16+++ b/unix/tcl.m4
17@@ -2725,7 +2725,7 @@ AC_DEFUN([SC_TCL_CHECK_BROKEN_FUNC],[
18     if test ["$tcl_ok"] = 1; then
19 	AC_CACHE_CHECK([proper ]$1[ implementation], [tcl_cv_]$1[_unbroken],
20 	    AC_TRY_RUN([[int main() {]$2[}]],[tcl_cv_]$1[_unbroken]=ok,
21-		[tcl_cv_]$1[_unbroken]=broken,[tcl_cv_]$1[_unbroken]=unknown))
22+		[tcl_cv_]$1[_unbroken]=broken,[tcl_cv_]$1[_unbroken]=ok))
23 	if test ["$tcl_cv_]$1[_unbroken"] = "ok"; then
24 	    tcl_ok=1
25 	else
26