]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Makefile: Clean up pthread_atfork integration
authorFlorian Weimer <fweimer@redhat.com>
Wed, 12 Mar 2025 10:29:10 +0000 (11:29 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 12 Mar 2025 11:37:11 +0000 (12:37 +0100)
Do not add the pthread_atfork routine again in nptl/Makefile,
instead rely on sysdeps/pthread/Makefile for the integration
(as this is the directory that contains the source file).

In sysdeps/pthread/Makefile, add to static-only-routines.

Reviewed-by: Joseph Myers <josmyers@redhat.com>
nptl/Makefile
sysdeps/pthread/Makefile

index eca00936d7691564709fa67302a79d252070baf6..e6481d5694312ad093f3895765882979f4b52d2e 100644 (file)
@@ -63,7 +63,6 @@ routines = \
   old_pthread_cond_signal \
   old_pthread_cond_timedwait \
   old_pthread_cond_wait \
-  pthread_atfork \
   pthread_attr_copy \
   pthread_attr_destroy \
   pthread_attr_extension \
@@ -211,7 +210,6 @@ routines = \
   vars \
   # routines
 
-static-only-routines = pthread_atfork
 libpthread-routines = libpthread-compat
 libpthread-shared-only-routines = libpthread-compat
 
index 5947db43f3335bc2d888abc62a71abb77c4b2253..70e62b2e1b008f614ee44384c3c0eede2ccecfaf 100644 (file)
@@ -304,7 +304,7 @@ tests-time64 += \
   tst-thrd-sleep-time64 \
   # tests-time64
 
-static-only-routines = pthread_atfork
+static-only-routines += pthread_atfork
 
 # Files which must not be linked with libpthread.
 tests-nolibpthread += \