aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/local.mk4
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