summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2005-02-06 13:15:21 +0000
committerAndy Polyakov <appro@openssl.org>2005-02-06 13:15:21 +0000
commitde4ab1e6290d23bf8732f7ad65f5471d94e2dd3d (patch)
treefcb37ed3825124c382c10362f003cce0a19242f4
parent216ddfaf6bfc775b68c04d3666dd0b555296000b (diff)
downloadopenssl-new-de4ab1e6290d23bf8732f7ad65f5471d94e2dd3d.tar.gz
Make util/shlib_wrap.sh [Open]BSD-friendly.
-rwxr-xr-xutil/shlib_wrap.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/util/shlib_wrap.sh b/util/shlib_wrap.sh
index b3d2a21443..dc5f5b1ce4 100755
--- a/util/shlib_wrap.sh
+++ b/util/shlib_wrap.sh
@@ -15,7 +15,8 @@ if [ -f "$LIBCRYPTOSO" ]; then
LIBSSLSO="${THERE}/libssl.so${SOSUFFIX}"
fi
-case "`(uname -s) 2>/dev/null`" in
+SYSNAME=`(uname -s) 2>/dev/null`;
+case "$SYSNAME" in
SunOS|IRIX*)
# SunOS and IRIX run-time linkers evaluate alternative
# variables depending on target ABI...
@@ -58,8 +59,11 @@ if [ -f "$LIBCRYPTOSO" ]; then
# with -rpath pointing to previous version installation. Wrapping
# it into a script makes it possible to do so on multi-ABI
# platforms.
- LD_PRELOAD="$LIBCRYPTOSO $LIBSSLSO" # SunOS, Linux, ELF HP-UX
- _RLD_LIST="$LIBCRYPTOSO:$LIBSSLSO:DEFAULT" # Tru64, o32 IRIX
+ case "$SYSNAME" in
+ *BSD) LD_PRELOAD="$LIBCRYPTOSO:$LIBSSLSO" ;; # *BSD
+ *) LD_PRELOAD="$LIBCRYPTOSO $LIBSSLSO" ;; # SunOS, Linux, ELF HP-UX
+ esac
+ _RLD_LIST="$LIBCRYPTOSO:$LIBSSLSO:DEFAULT" # Tru64, o32 IRIX
export LD_PRELOAD _RLD_LIST
fi