0001-dont-build-compat.patch 1.2 KB

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