]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
htl: Fix linking static examples against libpthread
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 13 Jul 2021 21:45:57 +0000 (21:45 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 13 Jul 2021 21:49:53 +0000 (23:49 +0200)
libpthread.a uses some mach and hurd RPCs so we need to link them in.

sysdeps/htl/Makeconfig

index b5c5d62b74b31d082d90e0afb9f8ab8eaab4e695..f8b321c8d23a0f4d6e2d631c5e17f1a844d377fe 100644 (file)
@@ -4,7 +4,7 @@
 have-thread-library = yes
 
 shared-thread-library = $(common-objpfx)htl/libpthread.so
-static-thread-library = $(..)htl/libpthread_syms.a $(common-objpfx)htl/libpthread.a
+static-thread-library = $(..)htl/libpthread_syms.a $(common-objpfx)htl/libpthread.a $(common-objpfx)mach/libmachuser.a $(common-objpfx)hurd/libhurduser.a
 bounded-thread-library = $(static-thread-library)
 
 ifeq (yes,$(build-shared))