]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - glibc/patches/glibc-fedora-i386-tls-direct-seg-refs.patch
glibc: Update to 2.17.
[people/ms/ipfire-3.x.git] / glibc / patches / glibc-fedora-i386-tls-direct-seg-refs.patch
diff --git a/glibc/patches/glibc-fedora-i386-tls-direct-seg-refs.patch b/glibc/patches/glibc-fedora-i386-tls-direct-seg-refs.patch
new file mode 100644 (file)
index 0000000..80c0f0d
--- /dev/null
@@ -0,0 +1,18 @@
+diff -Nrup a/sysdeps/i386/Makefile b/sysdeps/i386/Makefile
+--- a/sysdeps/i386/Makefile    2012-06-05 07:42:49.000000000 -0600
++++ b/sysdeps/i386/Makefile    2012-06-07 12:15:21.826318641 -0600
+@@ -62,6 +64,14 @@ endif
+ ifneq (,$(filter -mno-tls-direct-seg-refs,$(CFLAGS)))
+ defines += -DNO_TLS_DIRECT_SEG_REFS
++else
++# .a libraries are not performance critical and so we
++# build them without direct TLS segment references
++# always.
++CPPFLAGS-.o += -DNO_TLS_DIRECT_SEG_REFS
++CFLAGS-.o += -mno-tls-direct-seg-refs
++CPPFLAGS-.oS += -DNO_TLS_DIRECT_SEG_REFS
++CFLAGS-.oS += -mno-tls-direct-seg-refs
+ endif
+ ifeq ($(subdir),elf)