]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* configure.ac: Don't add -no-itegrated-as on clang on non-x86.
authorVladimir Serbinenko <phcoder@gmail.com>
Thu, 7 Nov 2013 17:18:43 +0000 (18:18 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Thu, 7 Nov 2013 17:18:43 +0000 (18:18 +0100)
ChangeLog
configure.ac

index b3e8436b9593a85dd89efc59b7daafaf6ba1ec89..e87616cacd98c1063bddfd2c1431ce1932e8bd50 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
+
 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Allow compiling with clang (not really supported though).
index 37d92897970b3994148e51081700e7ded9cbaba7..d8bf76ffbf97195df172ab1fff715ac9d61e0145 100644 (file)
@@ -489,7 +489,8 @@ AC_CACHE_CHECK([if compiling with clang], [grub_cv_cc_target_clang]
 ]])],
 [grub_cv_cc_target_clang=no], [grub_cv_cc_target_clang=yes])])
 
-if test "x$grub_cv_cc_target_clang" = xyes; then
+# 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
    TARGET_CCASFLAGS="$TARGET_CCASFLAGS -no-integrated-as"
 fi