From 2312f06c30b2f2fafc360338d8041624eebc5720 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Thu, 14 Nov 2013 08:36:35 +0100 Subject: [PATCH] * configure.ac: Use -no-integrated-as on arm with clang. * INSTALL: Mention ARM compilation with clang. --- ChangeLog | 5 +++++ INSTALL | 1 + configure.ac | 5 +++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a4b834c8d..cbd893689 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-11-14 Vladimir Serbinenko + + * configure.ac: Use -no-integrated-as on arm with clang. + * INSTALL: Mention ARM compilation with clang. + 2013-11-14 Vladimir Serbinenko * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add diff --git a/INSTALL b/INSTALL index 82dd3663e..39718ecde 100644 --- a/INSTALL +++ b/INSTALL @@ -15,6 +15,7 @@ configuring the GRUB. Note: older versions may work but support is limited Note: clang 3.2 or later works for i386 and x86_64 targets but results in much bigger binaries. + Note: clang 3.2 or later works for arm Note: clang 3.4 or later works for powerpc * GNU Make * GNU Bison 2.3 or later diff --git a/configure.ac b/configure.ac index 4ad758430..8eda6b4ff 100644 --- a/configure.ac +++ b/configure.ac @@ -487,8 +487,9 @@ AC_CACHE_CHECK([if compiling with clang], [grub_cv_cc_target_clang] ]])], [grub_cv_cc_target_clang=no], [grub_cv_cc_target_clang=yes])]) -# clang doesn't support .code16 -if test "x$grub_cv_cc_target_clang" = xyes && ( test "x$target_cpu" = xi386 || test "x$target_cpu" = xx86_64 ); then +# on x86 clang doesn't support .code16 +# on arm clang doesn't support .arch directive +if test "x$grub_cv_cc_target_clang" = xyes && ( test "x$target_cpu" = xi386 || test "x$target_cpu" = xx86_64 || test "x$target_cpu" = xarm ); then TARGET_CCASFLAGS="$TARGET_CCASFLAGS -no-integrated-as" fi