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