Link to stdc++fs

Some platforms seem to still require linking with stdc++fs to enable
STL std::filesystem support.
This commit is contained in:
Julian Stecklina 2020-03-09 14:07:26 +01:00 committed by Julian Stecklina
parent 6c00a9545f
commit cc4fe977e5

View file

@ -8,7 +8,11 @@ libexpr_SOURCES := $(wildcard $(d)/*.cc) $(wildcard $(d)/primops/*.cc) $(d)/lexe
libexpr_LIBS = libutil libstore libnixrust libexpr_LIBS = libutil libstore libnixrust
ifeq ($(CXX), g++)
libexpr_LDFLAGS = -lstdc++fs
else
libexpr_LDFLAGS = libexpr_LDFLAGS =
endif
ifneq ($(OS), FreeBSD) ifneq ($(OS), FreeBSD)
libexpr_LDFLAGS += -ldl libexpr_LDFLAGS += -ldl