about summary refs log tree commit diff
path: root/sysdeps/i386/configure.in
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2010-03-04 21:30:17 -0800
committerUlrich Drepper <drepper@redhat.com>2010-03-04 21:30:17 -0800
commit01f1f5ee8b58d5a3dce5250ed3514e9dfa5ceff4 (patch)
treefe469547bea80ea1f64ee3ece11a550667c6982f /sysdeps/i386/configure.in
parent3df9903e416a1c6d8157bb806c5fd342aabecbed (diff)
downloadglibc-01f1f5ee8b58d5a3dce5250ed3514e9dfa5ceff4.tar.gz
glibc-01f1f5ee8b58d5a3dce5250ed3514e9dfa5ceff4.tar.xz
glibc-01f1f5ee8b58d5a3dce5250ed3514e9dfa5ceff4.zip
Pass -mtune=i686 to assembler when compiling for i686
Diffstat (limited to 'sysdeps/i386/configure.in')
-rw-r--r--sysdeps/i386/configure.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/i386/configure.in b/sysdeps/i386/configure.in
index 12dceaf844..9fc7fa59fe 100644
--- a/sysdeps/i386/configure.in
+++ b/sysdeps/i386/configure.in
@@ -47,3 +47,11 @@ fi])
 if test $libc_cv_cc_sse4 = yes; then
   AC_DEFINE(HAVE_SSE4_SUPPORT)
 fi
+
+dnl Check if -Wa,-mtune=i686 works.
+AC_CACHE_CHECK(for assembler -mtune=i686 support, libc_cv_as_i686, [dnl
+if AC_TRY_COMMAND([${CC-cc} -Wa,-mtune=i686 -xc /dev/null -S -o /dev/null]); then
+  libc_cv_as_i686=yes
+else
+  libc_cv_as_i686=no
+fi])