]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
configure: link with libnssutil3 for NSS hash support
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 25 Jun 2020 09:00:53 +0000 (11:00 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 25 Jun 2020 10:43:25 +0000 (12:43 +0200)
With recent NSS versions, the NSS low hash initialization seems to fail
unless the executable is linked with the libnssutil3 library.

configure

index 5b9905ad0d1391c117d1d628ad656b42f548b671..5e62a77ffc8dc0c3a89b0b61427e7f2691ec3fe5 100755 (executable)
--- a/configure
+++ b/configure
@@ -939,7 +939,7 @@ fi
 
 if [ $feat_sechash = "1" ] && [ "x$HASH_LINK" = "x" ]  && [ $try_nss = "1" ]; then
   test_cflags="`pkg_config --cflags nss`"
-  test_link="`pkg_config --libs-only-L nss` -lfreebl3"
+  test_link="`pkg_config --libs-only-L nss` -lfreebl3 -lnssutil3"
   if test_code 'NSS' 'nss.h hasht.h nsslowhash.h' \
     "$test_cflags" "$test_link" \
     'NSSLOWHASH_Begin(NSSLOWHASH_NewContext(NSSLOW_Init(), HASH_AlgSHA512));'