From e3fb2f11d92e7a1df9fc1a83ba5d8bd7a5ca18fc Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Mon, 10 Jul 2017 19:52:31 +0800 Subject: Make threading a compile-time option and propagate it to all tools. Also fix a typo causing the help message not to be shown when threading is enabled. --- Makethird | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Makethird') diff --git a/Makethird b/Makethird index 7744072d..a226249c 100644 --- a/Makethird +++ b/Makethird @@ -763,7 +763,9 @@ endif # --- pthread --- -#ifeq "$(HAVE_PTHREAD)" "yes" -PTHREAD_CFLAGS := $(SYS_PTHREAD_CFLAGS) -PTHREAD_LIBS := $(SYS_PTHREAD_LIBS) -#endif +ifneq "$(threading)" "no" +ifeq "$(HAVE_PTHREAD)" "yes" +THREADING_CFLAGS := $(SYS_PTHREAD_CFLAGS) -DHAVE_PTHREAD +THREADING_LIBS := $(SYS_PTHREAD_LIBS) +endif +endif -- cgit v1.2.3