summaryrefslogtreecommitdiff
path: root/sysdeps/i386/i686/Makefile
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/i686/Makefile
parent3df9903e416a1c6d8157bb806c5fd342aabecbed (diff)
downloadglibc-01f1f5ee8b58d5a3dce5250ed3514e9dfa5ceff4.tar.gz
Pass -mtune=i686 to assembler when compiling for i686
Diffstat (limited to 'sysdeps/i386/i686/Makefile')
-rw-r--r--sysdeps/i386/i686/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/sysdeps/i386/i686/Makefile b/sysdeps/i386/i686/Makefile
index dbcf1c33d3..e6b2924584 100644
--- a/sysdeps/i386/i686/Makefile
+++ b/sysdeps/i386/i686/Makefile
@@ -9,3 +9,19 @@ stack-align-test-flags += -msse
ifeq ($(subdir),string)
sysdep_routines += cacheinfo
endif
+
+ifeq (yes,$(config-asflags-i686))
+CFLAGS-.o += -Wa,-mtune=i686
+CFLAGS-.os += -Wa,-mtune=i686
+CFLAGS-.op += -Wa,-mtune=i686
+CFLAGS-.og += -Wa,-mtune=i686
+CFLAGS-.ob += -Wa,-mtune=i686
+CFLAGS-.oS += -Wa,-mtune=i686
+
+ASFLAGS-.o += -Wa,-mtune=i686
+ASFLAGS-.os += -Wa,-mtune=i686
+ASFLAGS-.op += -Wa,-mtune=i686
+ASFLAGS-.og += -Wa,-mtune=i686
+ASFLAGS-.ob += -Wa,-mtune=i686
+ASFLAGS-.oS += -Wa,-mtune=i686
+endif