This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Use sysdep.o from libc.a in libpthread.a on more architectures [BZ #20452]
- From: fweimer at redhat dot com (Florian Weimer)
- To: libc-alpha at sourceware dot org
- Date: Thu, 11 Aug 2016 14:40:19 +0200
- Subject: [PATCH] Use sysdep.o from libc.a in libpthread.a on more architectures [BZ #20452]
- Authentication-results: sourceware.org; auth=none
This changes microblaze, powerpc, sparc, tile, in addition to x86, which
was changed in commit e67330ab57bfd0f964539576ae7dcc658c456724.
2016-08-11 Florian Weimer <fweimer@redhat.com>
[BZ #20452]
Use sysdep.o from libc.a in static libraries.
* sysdeps/unix/sysv/linux/microblaze/Makefile
(libpthread-shared-only-routines): Add sysdep.
* sysdeps/unix/sysv/linux/powerpc/Makefile
(libpthread-shared-only-routines): Likewise.
* sysdeps/unix/sysv/linux/sparc/Makefile
(libpthread-shared-only-routines): Likewise.
* sysdeps/unix/sysv/linux/tole/Makefile
(libpthread-shared-only-routines): Likewise.
diff --git a/sysdeps/unix/sysv/linux/microblaze/Makefile b/sysdeps/unix/sysv/linux/microblaze/Makefile
index 44a838f..d178bc6 100644
--- a/sysdeps/unix/sysv/linux/microblaze/Makefile
+++ b/sysdeps/unix/sysv/linux/microblaze/Makefile
@@ -5,4 +5,5 @@ endif
ifeq ($(subdir),nptl)
# pull in __syscall_error routine
libpthread-routines += sysdep
-endif
\ No newline at end of file
+libpthread-shared-only-routines += sysdep
+endif
diff --git a/sysdeps/unix/sysv/linux/powerpc/Makefile b/sysdeps/unix/sysv/linux/powerpc/Makefile
index c89ed9e..709650b 100644
--- a/sysdeps/unix/sysv/linux/powerpc/Makefile
+++ b/sysdeps/unix/sysv/linux/powerpc/Makefile
@@ -34,4 +34,5 @@ ifeq ($(subdir),nptl)
libpthread-routines += sysdep
libpthread-sysdep_routines += elision-lock elision-unlock elision-timed \
elision-trylock
+libpthread-shared-only-routines += sysdep
endif
diff --git a/sysdeps/unix/sysv/linux/sparc/Makefile b/sysdeps/unix/sysv/linux/sparc/Makefile
index e67aecf..ffab97b 100644
--- a/sysdeps/unix/sysv/linux/sparc/Makefile
+++ b/sysdeps/unix/sysv/linux/sparc/Makefile
@@ -15,4 +15,5 @@ endif
ifeq ($(subdir),nptl)
# pull in __syscall_error routine
libpthread-routines += sysdep
+libpthread-shared-only-routines += sysdep
endif
diff --git a/sysdeps/unix/sysv/linux/tile/Makefile b/sysdeps/unix/sysv/linux/tile/Makefile
index 1c1cfff..43acea3 100644
--- a/sysdeps/unix/sysv/linux/tile/Makefile
+++ b/sysdeps/unix/sysv/linux/tile/Makefile
@@ -25,4 +25,5 @@ endif
ifeq ($(subdir),nptl)
# pull in __syscall_error routine
libpthread-routines += sysdep
+libpthread-shared-only-routines += sysdep
endif