Fix for loading SSL libraries at runtime

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1393 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
Ton Voon 2006-05-17 10:10:10 +00:00
parent c655a1c011
commit 08394ddb2d

View file

@ -444,7 +444,8 @@ if ! test x"$with_openssl" = x"no"; then
unset FOUNDINCLUDE
if test x"$with_openssl" != x"/usr" ; then
CPPFLAGS="$CPPFLAGS -I$with_openssl/include"
LDFLAGS="$LDFLAGS -L$with_openssl/lib"
# Need both to find ssl libraries and to load at runtime
LDFLAGS="$LDFLAGS -L$with_openssl/lib -R$with_openssl/lib"
fi
dnl check for openssl in $dir/include/openssl