From dad33c9bdeed19c249beab6775493d1b6a1e3edd Mon Sep 17 00:00:00 2001 From: zjslqshqz <564964001@qq.com> Date: Thu, 29 Feb 2024 08:12:52 +0800 Subject: [PATCH] fix makefile -pthread (#2182) --- tcp-proxy/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcp-proxy/Makefile b/tcp-proxy/Makefile index ff77d2b6b..c14ce2728 100644 --- a/tcp-proxy/Makefile +++ b/tcp-proxy/Makefile @@ -3,7 +3,7 @@ CXX=$(shell which clang++ g++ c++ 2>/dev/null | head -n 1) INCLUDES?=-I../ext/prometheus-cpp-lite-1.0/core/include -I../ext/prometheus-cpp-lite-1.0/simpleapi/include all: - $(CXX) -O3 -fno-rtti $(INCLUDES) -std=c++11 -frtti -o tcp-proxy tcp-proxy.cpp ../node/Metrics.cpp + $(CXX) -O3 -fno-rtti $(INCLUDES) -std=c++11 -pthread -frtti -o tcp-proxy tcp-proxy.cpp ../node/Metrics.cpp clean: rm -f *.o tcp-proxy *.dSYM