about summary refs log tree commit diff
path: root/Makeconfig
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-05-03 08:12:11 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-05-03 08:13:32 +0200
commitad201afe5c348de265b92bae6688034102a4386b (patch)
tree61d621079929b61f50fd375134ce9ff45f198a71 /Makeconfig
parent23fdf8178cce3c2ec320dd5eca8b544245bcaef0 (diff)
downloadglibc-ad201afe5c348de265b92bae6688034102a4386b.tar.gz
glibc-ad201afe5c348de265b92bae6688034102a4386b.tar.xz
glibc-ad201afe5c348de265b92bae6688034102a4386b.zip
Add pthread-in-libc, libpthread-routines-var, librt-routines-var
These make variables can be used to add routines to different
libraries for the Hurd and Linux builds.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makeconfig b/Makeconfig
index 01f8638c2e..1d5e45926c 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -1328,6 +1328,17 @@ endif
 sysd-rules-targets := $(sort $(foreach p,$(sysd-rules-patterns),\
 					 $(firstword $(subst :, ,$p))))
 
+# $(libpthread-routines-var) and $(librt-routines-var) are the make
+# variable to which pthread routines need to be added to land in the
+# right library.
+ifeq ($(pthread-in-libc),yes)
+libpthread-routines-var = routines
+librt-routines-var = routines
+else
+libpthread-routines-var = libpthread-routines
+librt-routines-var = libpthread-routines
+endif
+
 # A sysdeps Makeconfig fragment may set libc-reentrant to yes.
 ifeq (yes,$(libc-reentrant))
 defines += -D_LIBC_REENTRANT