Skip to content

Commit 1edc51c

Browse files
committed
Makefile: Fix STATIC_LIBSTDCPP support
Previously, `STATIC_LIBSTDC++` was not respected because `-lstdc++` was present at the same time.
1 parent 5ebc5d5 commit 1edc51c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ LDFLAGS += $(EXTRA_LDFLAGS)
9191

9292
LDLIBS = -lm
9393
ifneq ($(BUILD),shared)
94-
LDLIBS += -lstdc++
94+
ifneq ($(STATIC_LIBSTDCPP),1)
95+
LDLIBS += -lstdc++
96+
endif
9597
endif
9698

9799
# link statically into lib

0 commit comments

Comments
 (0)