From aea440b56d1520b07f5f7f74125c053b5255f5f1 Mon Sep 17 00:00:00 2001 From: David McFarland Date: Mon, 28 Jun 2021 11:52:29 -0300 Subject: [PATCH] Link libmain against sodium This fixes: src/libmain/shared.cc:173: undefined reference to `sodium_init' on cygwin. --- src/libmain/local.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libmain/local.mk b/src/libmain/local.mk index 99da95e27975..7c87100ad368 100644 --- a/src/libmain/local.mk +++ b/src/libmain/local.mk @@ -8,7 +8,7 @@ libmain_SOURCES := $(wildcard $(d)/*.cc) libmain_CXXFLAGS += -I src/libutil -I src/libstore -libmain_LDFLAGS += $(OPENSSL_LIBS) +libmain_LDFLAGS += $(SODIUM_LIBS) $(OPENSSL_LIBS) libmain_LIBS = libstore libutil