Blame SOURCES/glibc-fedora-i386-tls-direct-seg-refs.patch

ce426f
diff -Nru glibc-2.17-c758a686/sysdeps/i386/Makefile glibc-2.17-c758a686/sysdeps/i386/Makefile
ce426f
--- glibc-2.17-c758a686/sysdeps/i386/Makefile	2012-06-05 07:42:49.000000000 -0600
ce426f
+++ glibc-2.17-c758a686/sysdeps/i386/Makefile	2012-06-07 12:15:21.826318641 -0600
ce426f
@@ -62,6 +64,14 @@ endif
ce426f
 
ce426f
 ifneq (,$(filter -mno-tls-direct-seg-refs,$(CFLAGS)))
ce426f
 defines += -DNO_TLS_DIRECT_SEG_REFS
ce426f
+else
ce426f
+# .a libraries are not performance critical and so we
ce426f
+# build them without direct TLS segment references
ce426f
+# always.
ce426f
+CPPFLAGS-.o += -DNO_TLS_DIRECT_SEG_REFS
ce426f
+CFLAGS-.o += -mno-tls-direct-seg-refs
ce426f
+CPPFLAGS-.oS += -DNO_TLS_DIRECT_SEG_REFS
ce426f
+CFLAGS-.oS += -mno-tls-direct-seg-refs
ce426f
 endif
ce426f
 
ce426f
 ifeq ($(subdir),elf)