From 1edc51ca7e28b6d829c998c901e7e07a9d17fa39 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sun, 26 May 2019 17:53:54 +0100 Subject: [PATCH] Makefile: Fix STATIC_LIBSTDCPP support Previously, `STATIC_LIBSTDC++` was not respected because `-lstdc++` was present at the same time. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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