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

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