85c5c57df4b0b78331cc69391a6477a40e702e20
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / tcl / 0001-dont-build-compat.patch
1 From: Andrew Ruder <andrew.ruder@elecsyscorp.com>
2 Subject: [PATCH] Disable tcl compatibility layers
3
4 Turn off building compatibility layers for old/broken versions of
5 standard functions (strstr, strtoul, strtod) with the assumption that
6 anything buildroot is using as a standard C library will be good enough
7 to not have broken behavior.
8
9 Signed-off-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
10 ---
11
12 diff --git a/unix/tcl.m4 b/unix/tcl.m4
13 --- a/unix/tcl.m4
14 +++ b/unix/tcl.m4
15 @@ -2466,7 +2466,7 @@ AC_DEFUN([SC_BUGGY_STRTOD], [
16                     }
17                     exit(0);
18                 }], tcl_cv_strtod_buggy=ok, tcl_cv_strtod_buggy=buggy,
19 -                   tcl_cv_strtod_buggy=buggy)])
20 +                   tcl_cv_strtod_buggy=ok)])
21         if test "$tcl_cv_strtod_buggy" = buggy; then
22             AC_LIBOBJ([fixstrtod])
23             USE_COMPAT=1
24 @@ -2725,7 +2725,7 @@ AC_DEFUN([SC_TCL_CHECK_BROKEN_FUNC],[
25      if test ["$tcl_ok"] = 1; then
26         AC_CACHE_CHECK([proper ]$1[ implementation], [tcl_cv_]$1[_unbroken],
27             AC_TRY_RUN([[int main() {]$2[}]],[tcl_cv_]$1[_unbroken]=ok,
28 -               [tcl_cv_]$1[_unbroken]=broken,[tcl_cv_]$1[_unbroken]=unknown))
29 +               [tcl_cv_]$1[_unbroken]=broken,[tcl_cv_]$1[_unbroken]=ok))
30         if test ["$tcl_cv_]$1[_unbroken"] = "ok"; then
31             tcl_ok=1
32         else