From b95d94935ed107679fd0ad9efd2f3d47309b6fd3 Mon Sep 17 00:00:00 2001 From: githejie Date: Fri, 2 Aug 2024 16:33:09 +0800 Subject: [PATCH] Problem: macos-latest with libsodium compilation failed Solution: Add libsodium dependencies to Makefile.am file. --- Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile.am b/Makefile.am index 6d7085af..19aa1680 100755 --- a/Makefile.am +++ b/Makefile.am @@ -1418,6 +1418,11 @@ unittests_unittest_curve_encoding_LDADD = \ $(top_builddir)/src/.libs/libzmq.a \ ${src_libzmq_la_LIBADD} \ $(CODE_COVERAGE_LDFLAGS) + +if USE_LIBSODIUM +unittests_unittest_curve_encoding_CPPFLAGS += ${sodium_CFLAGS} +unittests_unittest_curve_encoding_LDADD += ${sodium_LIBS} +endif endif check_PROGRAMS = ${test_apps}