From 3b638095a575451b3c92ebd0b45f11578d07f26d Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 25 May 2021 11:30:23 +0200 Subject: nptl: Do not install libpthread.so and do not link tests with it Keep installing libpthread.a, so that -lpthread works. Reviewed-by: Adhemerval Zanella --- sysdeps/nptl/Makeconfig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/nptl/Makeconfig b/sysdeps/nptl/Makeconfig index 8757ec868b..8a9407925c 100644 --- a/sysdeps/nptl/Makeconfig +++ b/sysdeps/nptl/Makeconfig @@ -21,7 +21,11 @@ have-thread-library = yes -shared-thread-library = $(common-objpfx)nptl/libpthread.so -static-thread-library = $(common-objpfx)nptl/libpthread.a +# The thread library is integrated. +shared-thread-library = +static-thread-library = +# Some tests need this to load their own test objects, and system +# libraries used by memusagestat need to link against the empty +# libpthread.so.0, not the (potentially non-empty) system version. rpath-dirs += nptl -- cgit v1.2.3