0001-build-Don-t-default-to-underscore-yes-for-cross-buil.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. From 7fec3ac22efb86fce90a9edc5696e16ee88a65c7 Mon Sep 17 00:00:00 2001
  2. From: NIIBE Yutaka <gniibe@fsij.org>
  3. Date: Wed, 24 Oct 2018 14:29:45 +0900
  4. Subject: [PATCH] build: Don't default to underscore=yes for cross-build.
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. * acinclude.m4: Don't set ac_cv_sys_symbol_underscore
  9. for cross build.
  10. --
  11. It made sense in the past when cross compile were basically for a.out
  12. system, but nowadays, it's better not to assume that.
  13. Fetched from: 0f4545b441b6fbdd6e9c4e95f5f2a367483e78ad
  14. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
  15. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
  16. ---
  17. acinclude.m4 | 8 ++------
  18. 1 file changed, 2 insertions(+), 6 deletions(-)
  19. diff --git a/acinclude.m4 b/acinclude.m4
  20. index fc208c53..6f7789d0 100644
  21. --- a/acinclude.m4
  22. +++ b/acinclude.m4
  23. @@ -111,14 +111,10 @@ case "${host}" in
  24. ac_cv_sys_symbol_underscore=yes
  25. ;;
  26. *)
  27. - if test "$cross_compiling" = yes; then
  28. - if test "x$ac_cv_sys_symbol_underscore" = x ; then
  29. - ac_cv_sys_symbol_underscore=yes
  30. - fi
  31. - else
  32. + if test "$cross_compiling" != yes; then
  33. tmp_do_check="yes"
  34. fi
  35. - ;;
  36. + ;;
  37. esac
  38. if test "$tmp_do_check" = "yes"; then
  39. AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])
  40. --
  41. 2.22.0