summaryrefslogtreecommitdiff
path: root/Makeconfig
diff options
context:
space:
mode:
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig11
1 files changed, 3 insertions, 8 deletions
diff --git a/Makeconfig b/Makeconfig
index 996b971d61..26884f82d2 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -806,13 +806,6 @@ endif
endif # build-shared
-ifneq (,$(findstring linuxthreads,$(add-ons)))
-shared-thread-library = $(common-objpfx)linuxthreads/libpthread.so
-static-thread-library = $(common-objpfx)linuxthreads/libpthread.a
-bounded-thread-library = $(common-objpfx)linuxthreads/libpthread_b.a
-have-thread-library = yes
-rpath-dirs += linuxthreads
-endif
ifeq ($(elf),yes)
dlfcn = dlfcn
@@ -880,7 +873,9 @@ $(common-objpfx)sysd-sorted: $(..)scripts/gen-sorted.awk $(all-Depend-files) \
endif
# Let sysdeps/ subdirs contain a Makeconfig fragment for us to include here.
-sysdep-makeconfigs := $(wildcard $(full_config_sysdirs:=/Makeconfig))
+sysdep-makeconfigs := $(wildcard $(patsubst %,$(..)%/Makeconfig,\
+ $(config-sysdirs) $(add-ons)))
+
ifneq (,$(sysdep-makeconfigs))
include $(sysdep-makeconfigs)
endif