aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-08-04 11:10:57 +0200
committerFlorian Weimer <fweimer@redhat.com>2016-08-04 11:10:57 +0200
commite67330ab57bfd0f964539576ae7dcc658c456724 (patch)
tree363747fb6cc852321c9c848aa0c56c1e32515f04 /sysdeps
parent146f208da68a3ff27a52f05536c61e6db69cd87f (diff)
downloadglibc-e67330ab57bfd0f964539576ae7dcc658c456724.zip
glibc-e67330ab57bfd0f964539576ae7dcc658c456724.tar.gz
glibc-e67330ab57bfd0f964539576ae7dcc658c456724.tar.bz2
x86: Use sysdep.o from libc.a in static libraries
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).
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/i386/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/Makefile b/sysdeps/unix/sysv/linux/i386/Makefile
index 71ba61e..b015ff7 100644
--- a/sysdeps/unix/sysv/linux/i386/Makefile
+++ b/sysdeps/unix/sysv/linux/i386/Makefile
@@ -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