ded59d
From d03094649d39949a30513bf3ffb03a28fecbccd8 Mon Sep 17 00:00:00 2001
ded59d
From: Adam Yi <ayi@janestreet.com>
ded59d
Date: Wed, 8 Mar 2023 03:11:47 -0500
ded59d
Subject: hurd: fix build of tst-system.c
ded59d
ded59d
We made tst-system.c depend on pthread, but that requires linking with
ded59d
$(shared-thread-library). It does not fail under Linux because the
ded59d
variable expands to nothing under Linux, but it fails for Hurd.
ded59d
ded59d
I tested verified via cross-compiling that "make check" now works
ded59d
for Hurd.
ded59d
ded59d
Signed-off-by: Adam Yi <ayi@janestreet.com>
ded59d
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
ded59d
ded59d
[DJ: Edited for RHEL 8]
ded59d
diff -rup a/stdlib/Makefile b/stdlib/Makefile
ded59d
--- a/stdlib/Makefile	2023-07-07 00:44:55.810981644 -0400
ded59d
+++ b/stdlib/Makefile	2023-07-07 00:46:47.541411091 -0400
ded59d
@@ -102,6 +102,7 @@ LDLIBS-test-atexit-race = $(shared-threa
ded59d
 LDLIBS-test-at_quick_exit-race = $(shared-thread-library)
ded59d
 LDLIBS-test-cxa_atexit-race = $(shared-thread-library)
ded59d
 LDLIBS-test-on_exit-race = $(shared-thread-library)
ded59d
+LDLIBS-tst-system = $(shared-thread-library)
ded59d
 
ded59d
 LDLIBS-test-dlclose-exit-race = $(shared-thread-library) $(libdl)
ded59d
 LDFLAGS-test-dlclose-exit-race = $(LDFLAGS-rdynamic)