[PATCH] hurd: fix build of tst-system.c

Adam Yi ayi@janestreet.com
Wed Mar 8 08:11:47 GMT 2023


We made tst-system.c depend on pthread, but that requires linking with
$(shared-thread-library). It does not fail under Linux because the
variable expands to nothing under Linux, but it fails for Hurd.

I tested verified via cross-compiling that "make check" now works
for Hurd.

Signed-off-by: Adam Yi <ayi@janestreet.com>
---
 stdlib/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/stdlib/Makefile b/stdlib/Makefile
index cd32f53b56..5e38f0e6a2 100644
--- a/stdlib/Makefile
+++ b/stdlib/Makefile
@@ -281,6 +281,7 @@ LDLIBS-test-on_exit-race = $(shared-thread-library)
 LDLIBS-tst-canon-bz26341 = $(shared-thread-library)
 LDLIBS-tst-arc4random-fork = $(shared-thread-library)
 LDLIBS-tst-arc4random-thread = $(shared-thread-library)
+LDLIBS-tst-system = $(shared-thread-library)
 
 LDLIBS-test-dlclose-exit-race = $(shared-thread-library)
 LDFLAGS-test-dlclose-exit-race = $(LDFLAGS-rdynamic)
-- 
2.31.1



More information about the Libc-alpha mailing list