aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/local.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/local.mk')
-rw-r--r--src/libutil/local.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libutil/local.mk b/src/libutil/local.mk
index f880c0fc5..81efaafec 100644
--- a/src/libutil/local.mk
+++ b/src/libutil/local.mk
@@ -6,8 +6,13 @@ libutil_DIR := $(d)
libutil_SOURCES := $(wildcard $(d)/*.cc)
+libutil_CXXFLAGS += -I src/libutil
+
libutil_LDFLAGS += -pthread $(OPENSSL_LIBS) $(LIBBROTLI_LIBS) $(LIBARCHIVE_LIBS) $(BOOST_LDFLAGS) -lboost_context
+$(foreach i, $(wildcard $(d)/args/*.hh), \
+ $(eval $(call install-file-in, $(i), $(includedir)/nix/args, 0644)))
+
ifeq ($(HAVE_LIBCPUID), 1)
libutil_LDFLAGS += -lcpuid
endif