Code

Fix for loading SSL libraries at runtime
authorTon Voon <tonvoon@users.sourceforge.net>
Wed, 17 May 2006 10:10:10 +0000 (10:10 +0000)
committerTon Voon <tonvoon@users.sourceforge.net>
Wed, 17 May 2006 10:10:10 +0000 (10:10 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1393 f882894a-f735-0410-b71e-b25c423dba1c

configure.in

index 4e65c52fbdd446e3c60a6c085e957dd611a68ba4..0fba2d39ddd55125da2109c991aba0195bd7d960 100644 (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