From 9a6df3ce5322d8b7db2040d9e834bfb2d9683f23 Mon Sep 17 00:00:00 2001 From: TLINDEN Date: Wed, 27 May 2015 23:10:09 +0200 Subject: [PATCH] honor LDFLAGS when using pkg-config to find libsodium --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 6d73f0e..1e8761e 100755 --- a/configure.ac +++ b/configure.ac @@ -190,8 +190,8 @@ if test "x${_havenacl}" = "xno"; then AC_MSG_CHECKING([pkg-config for libsodium]) if pkg-config --exists libsodium; then # found it - LDFLAGS=`pkg-config --libs libsodium` - CFLAGS=`pkg-config --cflags libsodium` + LDFLAGS="`pkg-config --libs libsodium` ${LDFLAGS}" + CFLAGS="`pkg-config --cflags libsodium` ${CFLAGS}" _ldlib=`pkg-config --libs libsodium | cut -d ' ' -f 1 | cut -d L -f 2` _havenacl=yes AC_MSG_RESULT([yes])