]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86: Use sysdep.o from libc.a in static libraries
authorFlorian Weimer <fweimer@redhat.com>
Thu, 4 Aug 2016 09:10:57 +0000 (11:10 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 4 Aug 2016 09:45:53 +0000 (11:45 +0200)
Static libraries can use the sysdep.o copy in libc.a without
a performance penalty.  This results in a visible difference
if libpthread.a is relinked into a single object file (which
is needed to support libraries which check for the presence
of certain symbols to enable threading support, which generally
fails with static linking unless libpthread.a is relinked).

(cherry picked from commit e67330ab57bfd0f964539576ae7dcc658c456724)

ChangeLog
sysdeps/unix/sysv/linux/i386/Makefile

index c44c92609406938754897e33b4b15a6394f29aac..5dc53ac586d290cf312ea8a680132afb8b5567c0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-08-04  Florian Weimer  <fweimer@redhat.com>
+
+       Use sysdep.o from libc.a in static libraries.
+       * sysdeps/unix/sysv/linux/i386/Makefile
+       (libpthread-shared-only-routines): Add sysdep.
+       (librt-shared-only-routines): Likewise.
+
 2016-08-01  Carlos O'Donell  <carlos@redhat.com>
 
        * version.h (RELEASE): Set to "stable"
index 71ba61e9d75dc2c0d45bac00265f35a56ef27eb4..b015ff7c760c189e14027e9f0aa757195427cfc2 100644 (file)
@@ -48,9 +48,11 @@ endif
 ifeq ($(subdir),nptl)
 # pull in __syscall_error routine
 libpthread-routines += sysdep
+libpthread-shared-only-routines += sysdep
 endif
 
 ifeq ($(subdir),rt)
 # pull in __syscall_error routine
 librt-routines += sysdep
+librt-shared-only-routines += sysdep
 endif