diff --git a/Makefile b/Makefile index aa96c3282..52acc234a 100644 --- a/Makefile +++ b/Makefile @@ -91,7 +91,9 @@ LDFLAGS += $(EXTRA_LDFLAGS) LDLIBS = -lm ifneq ($(BUILD),shared) - LDLIBS += -lstdc++ + ifneq ($(STATIC_LIBSTDCPP),1) + LDLIBS += -lstdc++ + endif endif # link statically into lib