Don't use -mlong-calls on arm.
authorVladimir Serbinenko <phcoder@gmail.com>
Mon, 23 Jan 2017 20:57:23 +0000 (23:57 +0300)
committerVladimir Serbinenko <phcoder@gmail.com>
Fri, 27 Jan 2017 18:48:25 +0000 (18:48 +0000)
We don't really need it and it's flaky and creates
bogus symbols with clang.

configure.ac

index ab7fa92..29d05c1 100644 (file)
@@ -1162,15 +1162,6 @@ if test "x$target_cpu" = xarm; then
     # A trick so that clang doesn't see it on link stage
     TARGET_CPPFLAGS="$TARGET_CPPFLAGS -mllvm -arm-use-movt=0"
   fi
-  AC_CACHE_CHECK([whether option -mlong-calls works], grub_cv_cc_mlong_calls, [
-    CFLAGS="$TARGET_CFLAGS -mlong-calls -Werror"
-    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
-                     [grub_cv_cc_mlong_calls=yes],
-                     [grub_cv_cc_mlong_calls=no])
-  ])
-  if test "x$grub_cv_cc_mlong_calls" = xyes; then
-    TARGET_CFLAGS="$TARGET_CFLAGS -mlong-calls"
-  fi
   AC_CACHE_CHECK([whether option -mthumb-interwork works], grub_cv_cc_mthumb_interwork, [
     CFLAGS="$TARGET_CFLAGS -mthumb-interwork -Werror"
     AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],