From 1fd7e9cdac0e31076639ea347f389c53b7c57dc2 Mon Sep 17 00:00:00 2001 From: Indev Date: Thu, 5 Jun 2025 18:30:24 +0300 Subject: [PATCH] Add -lpthread into libs and cxxopts into c++ compilation flags --- src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 6713bc624..11e6c238e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -262,7 +262,7 @@ opts+=$(debug_opts) opts+=$(foreach v,$(passthru_opts),$(if $($(v)),-D$(v))) opts+=$(WFLAGS) $(CPPFLAGS) $(CFLAGS) -libs+=$(LDFLAGS) -lstdc++ +libs+=$(LDFLAGS) -lstdc++ -lpthread asflags:=$(ASFLAGS) -x assembler-with-cpp cxxopts:=$(opts) @@ -405,7 +405,7 @@ $(objdir)/%.$(1) : %.$(2) | $$$$(@D)/ endef $(eval $(call _recipe,o,c,$(cc) -c -o $$@ $$<)) -$(eval $(call _recipe,o,cpp,$(cxx) -c -o $$@ $$<)) +$(eval $(call _recipe,o,cpp,$(cxx) $(cxxopts) -c -o $$@ $$<)) $(eval $(call _recipe,o,s,$(cc) $(asflags) -c -o $$@ $$<)) $(eval $(call _recipe,res,rc,$(windres) -i $$< -o $$@))