From 7dae8cfcc466da481f1a477f6671e750df91e10b Mon Sep 17 00:00:00 2001 From: orignal Date: Sun, 16 Aug 2026 08:12:19 -0400 Subject: [PATCH] detect clnag compiler properly --- Makefile.linux | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.linux b/Makefile.linux index 53a0b260..c2292ff4 100644 --- a/Makefile.linux +++ b/Makefile.linux @@ -9,10 +9,11 @@ LDFLAGS ?= ${LD_DEBUG} ## -std=c++11. If you want to remove this variable please do so in a way that allows setting ## custom FDLAGS to work at build-time. -# detect proper flag for c++20 support by compilers +# detect proper flag for c++20/с++23 support by compilers CXXVER := $(shell $(CXX) -dumpversion) -ifeq ($(shell expr match $(CXX) 'clang'),5) +ifneq ($(findstring clang,$(CXX)),) NEEDED_CXXFLAGS += -std=c++20 + LDLIBS = -lboost_json else ifeq ($(shell expr match ${CXXVER} "10"),2) # gcc 10 # for Debian 11 NEEDED_CXXFLAGS += -std=c++17