From e4f639e4a106d90c6f3159230788653fd6e40a26 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 12 Dec 2014 13:17:21 -0800 Subject: NPTL: Refactor named semaphore code to use shm-directory.h --- sysdeps/posix/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sysdeps/posix/Makefile') diff --git a/sysdeps/posix/Makefile b/sysdeps/posix/Makefile index 8e5f7c3bba..52f20f5d97 100644 --- a/sysdeps/posix/Makefile +++ b/sysdeps/posix/Makefile @@ -4,6 +4,8 @@ TMP_MAX = 238328 L_ctermid = 9 L_cuserid = 9 -ifeq ($(subdir),rt) +ifeq ($(subdir)|$(have-thread-library),rt|no) +# With NPTL, this lives in libpthread so it can be used for sem_open too. +# Without NPTL, it's just private in librt. librt-routines += shm-directory endif -- cgit 1.4.1