From 08394ddb2d62ec8aab9121e45ab9c1a102e85ba4 Mon Sep 17 00:00:00 2001
From: Ton Voon <tonvoon@users.sourceforge.net>
Date: Wed, 17 May 2006 10:10:10 +0000
Subject: 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

diff --git a/configure.in b/configure.in
index 4e65c52..0fba2d3 100644
--- a/configure.in
+++ b/configure.in
@@ -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
-- 
cgit v0.10-9-g596f

