diff --git a/GNUmakefile b/GNUmakefile index 5c3c9fb6..f70a3da1 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -63,7 +63,7 @@ CFLAGS ?= $(strip $(eval CFLAGS := -std=gnu11 -O2 -g -Wall -Werror -Wextra CXXSTD ?= $(eval CXXSTD := $$(shell for std in gnu++23 c++23 gnu++2b c++2b gnu++20 c++20 gnu++2a c++2a gnu++17 c++17 gnu++1z c++1z gnu++14 c++14 gnu++1y c++1y gnu+11 c++11 gnu++0x c++0x; do $(CXX) -std=$$$${std} -c $(SRC_PROBE_CXX) -o /dev/null 2>probe4std-$$$${std}.err >/dev/null && echo "-std=$$$${std}" && exit; done))$(CXXSTD) CXXFLAGS ?= $(strip $(CXXSTD) $(filter-out -std=gnu11,$(CFLAGS))) -# libraries adn options for linking +# libraries and options for linking EXE_LDFLAGS ?= -pthread ifneq ($(make_ge_4_1),1) # don't use variable expansion trick as workaround for bugs of GNU Make before 4.1