projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
216ddfa
)
Make util/shlib_wrap.sh [Open]BSD-friendly.
author
Andy Polyakov
<appro@openssl.org>
Sun, 6 Feb 2005 13:15:21 +0000
(13:15 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Sun, 6 Feb 2005 13:15:21 +0000
(13:15 +0000)
util/shlib_wrap.sh
patch
|
blob
|
history
diff --git
a/util/shlib_wrap.sh
b/util/shlib_wrap.sh
index b3d2a21443a9393a056b81a04e556bf4ecd97fd6..dc5f5b1ce4802820a07c14136e55a5fc974f78a6 100755
(executable)
--- a/
util/shlib_wrap.sh
+++ b/
util/shlib_wrap.sh
@@
-15,7
+15,8
@@
if [ -f "$LIBCRYPTOSO" ]; then
LIBSSLSO="${THERE}/libssl.so${SOSUFFIX}"
fi
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...
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.
# 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
export LD_PRELOAD _RLD_LIST
fi