Make sure this script works with shared library builds as well.
authorRichard Levitte <levitte@openssl.org>
Thu, 15 Apr 2004 16:24:44 +0000 (16:24 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 15 Apr 2004 16:24:44 +0000 (16:24 +0000)
fips/openssl_fips_fingerprint

index 3ab62de5cf9ffe47dd323f0ee2ea7b07e34d8304..e20b38d43c3b690e95425cd801872ceca22483c0 100755 (executable)
@@ -7,10 +7,14 @@ lib=$1
 exe=$2
 
 # deal with the case where we're run from within the build and OpenSSL is
-# not yet installed
+# not yet installed.  Also, make sure LD_LIBRARY_PATH is properly set in
+# case shared libraries are built.
 if [ "X$TOP" != "X" ]
 then
     PATH=$TOP/apps:$PATH
+    LD_LIBRARY_PATH=$TOP; export LD_LIBRARY_PATH
+else
+    LD_LIBRARY_PATH=.; export LD_LIBRARY_PATH
 fi
 
 elib=`echo $lib| sed 's/\//\\\\\//g'`