]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: fix build of tst-system.c
authorAdam Yi <ayi@janestreet.com>
Wed, 8 Mar 2023 08:11:47 +0000 (03:11 -0500)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 2 May 2024 17:20:08 +0000 (19:20 +0200)
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>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
(cherry picked from commit d03094649d39949a30513bf3ffb03a28fecbccd8)

stdlib/Makefile

index 005eede5d94b2205d3cd9faaee5ca4c0df9c87c8..15361ce65082fac438c63d8d9c29110e6b721b5f 100644 (file)
@@ -277,6 +277,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)