diff options
author | Julian Stecklina <julian.stecklina@cyberus-technology.de> | 2020-03-09 14:07:26 +0100 |
---|---|---|
committer | Julian Stecklina <js@alien8.de> | 2020-03-29 22:29:58 +0200 |
commit | cc4fe977e5eedf00d8e3d267ccbc3676b3fac1a0 (patch) | |
tree | 7b2789d46a7b8eea192e7a291fc33f57cb95cc9d /src | |
parent | 6c00a9545f2162496032c490aadbadd85856662c (diff) |
Link to stdc++fs
Some platforms seem to still require linking with stdc++fs to enable
STL std::filesystem support.
Diffstat (limited to 'src')
-rw-r--r-- | src/libexpr/local.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libexpr/local.mk b/src/libexpr/local.mk index 9b5fcc561..b6ee82424 100644 --- a/src/libexpr/local.mk +++ b/src/libexpr/local.mk @@ -8,7 +8,11 @@ libexpr_SOURCES := $(wildcard $(d)/*.cc) $(wildcard $(d)/primops/*.cc) $(d)/lexe libexpr_LIBS = libutil libstore libnixrust +ifeq ($(CXX), g++) +libexpr_LDFLAGS = -lstdc++fs +else libexpr_LDFLAGS = +endif ifneq ($(OS), FreeBSD) libexpr_LDFLAGS += -ldl |