Skip to content

Commit

Permalink
Makefile: Fix STATIC_LIBSTDCPP support
Browse files Browse the repository at this point in the history
Previously, `STATIC_LIBSTDC++` was not respected because `-lstdc++` was
present at the same time.
  • Loading branch information
glebm committed May 27, 2019
1 parent 5ebc5d5 commit 1edc51c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1edc51c

Please sign in to comment.