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