diff --git a/src/Makefile b/src/Makefile index 2ccd4238b..dbd63dadf 100644 --- a/src/Makefile +++ b/src/Makefile @@ -269,7 +269,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) @@ -412,7 +412,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 $$@))