From 8bf4e7c25e63254ee4c2a6a9e8d2bb8ada422bdd Mon Sep 17 00:00:00 2001 From: "K.C. Budd" Date: Tue, 14 Nov 2023 08:22:27 -0800 Subject: [PATCH] Fix pthreads on older gcc --- tools/mfkey/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/mfkey/Makefile b/tools/mfkey/Makefile index 113cd753dc..d5b14f1a32 100644 --- a/tools/mfkey/Makefile +++ b/tools/mfkey/Makefile @@ -9,6 +9,11 @@ INSTALLTOOLS = $(BINS) include ../../Makefile.host +# nested_util.c needs pthread support. Older glibc needs it externally +ifneq ($(SKIPPTHREAD),1) + MYLDLIBS += -lpthread +endif + # checking platform can be done only after Makefile.host ifneq (,$(findstring MINGW,$(platform))) # Mingw uses by default Microsoft printf, we want the GNU printf (e.g. for %z)