From: Vladimir Serbinenko Date: Mon, 23 Jan 2017 20:57:23 +0000 (+0300) Subject: Don't use -mlong-calls on arm. X-Git-Tag: 2.02-rc1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79fc0089352fb0a7680fb661f6b759845c95e1fb;p=thirdparty%2Fgrub.git Don't use -mlong-calls on arm. We don't really need it and it's flaky and creates bogus symbols with clang. --- diff --git a/configure.ac b/configure.ac index ab7fa92e0..29d05c15d 100644 --- a/configure.ac +++ b/configure.ac @@ -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([[]], [[]])],