From ad69f4f32bf668eb51b1b9c18b7f56125d8c5e3b Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 25 Jun 2020 11:00:53 +0200 Subject: [PATCH] configure: link with libnssutil3 for NSS hash support With recent NSS versions, the NSS low hash initialization seems to fail unless the executable is linked with the libnssutil3 library. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 5b9905a..5e62a77 100755 --- 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));'