Make util/shlib_wrap.sh [Open]BSD-friendly.
This commit is contained in:
parent
216ddfaf6b
commit
de4ab1e629
@ -15,7 +15,8 @@ if [ -f "$LIBCRYPTOSO" ]; then
|
|||||||
LIBSSLSO="${THERE}/libssl.so${SOSUFFIX}"
|
LIBSSLSO="${THERE}/libssl.so${SOSUFFIX}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "`(uname -s) 2>/dev/null`" in
|
SYSNAME=`(uname -s) 2>/dev/null`;
|
||||||
|
case "$SYSNAME" in
|
||||||
SunOS|IRIX*)
|
SunOS|IRIX*)
|
||||||
# SunOS and IRIX run-time linkers evaluate alternative
|
# SunOS and IRIX run-time linkers evaluate alternative
|
||||||
# variables depending on target ABI...
|
# variables depending on target ABI...
|
||||||
@ -58,7 +59,10 @@ if [ -f "$LIBCRYPTOSO" ]; then
|
|||||||
# with -rpath pointing to previous version installation. Wrapping
|
# with -rpath pointing to previous version installation. Wrapping
|
||||||
# it into a script makes it possible to do so on multi-ABI
|
# it into a script makes it possible to do so on multi-ABI
|
||||||
# platforms.
|
# platforms.
|
||||||
LD_PRELOAD="$LIBCRYPTOSO $LIBSSLSO" # SunOS, Linux, ELF HP-UX
|
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
|
_RLD_LIST="$LIBCRYPTOSO:$LIBSSLSO:DEFAULT" # Tru64, o32 IRIX
|
||||||
export LD_PRELOAD _RLD_LIST
|
export LD_PRELOAD _RLD_LIST
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user