BUILD: makefile: support THREAD_LDFLAGS
authorWilly Tarreau <w@1wt.eu>
Wed, 21 Dec 2022 15:17:40 +0000 (16:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Dec 2022 15:53:35 +0000 (16:53 +0100)
The LDFLAGS appended by USE_THREAD can now be overridden using
THREAD_LDFLAGS.

Makefile

index 63c7f78..71bd1d5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -548,7 +548,7 @@ ifneq ($(USE_RT),)
 endif
 
 ifneq ($(USE_THREAD),)
-  OPTIONS_LDFLAGS += -lpthread
+  THREAD_LDFLAGS = -lpthread
 endif
 
 ifneq ($(USE_BACKTRACE),)