arrfab / rpms / glibc

Forked from rpms/glibc 4 years ago
Clone

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

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