OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 [ $# -ne 0 ] || set -x # debug mode without arguments:-) | 3 [ $# -ne 0 ] || set -x # debug mode without arguments:-) |
4 | 4 |
5 THERE="`echo $0 | sed -e 's|[^/]*$||' 2>/dev/null`.." | 5 THERE="`echo $0 | sed -e 's|[^/]*$||' 2>/dev/null`.." |
6 [ -d "${THERE}" ] || exec "$@" # should never happen... | 6 [ -d "${THERE}" ] || exec "$@" # should never happen... |
7 | 7 |
8 # Alternative to this is to parse ${THERE}/Makefile... | 8 # Alternative to this is to parse ${THERE}/Makefile... |
9 LIBCRYPTOSO="${THERE}/libcrypto.so" | 9 LIBCRYPTOSO="${THERE}/libcrypto.so" |
10 if [ -f "$LIBCRYPTOSO" ]; then | 10 if [ -f "$LIBCRYPTOSO" ]; then |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 # platforms. | 81 # platforms. |
82 case "$SYSNAME" in | 82 case "$SYSNAME" in |
83 *BSD|QNX) LD_PRELOAD="$LIBCRYPTOSO:$LIBSSLSO" ;; # *BSD, QNX | 83 *BSD|QNX) LD_PRELOAD="$LIBCRYPTOSO:$LIBSSLSO" ;; # *BSD, QNX |
84 *) LD_PRELOAD="$LIBCRYPTOSO $LIBSSLSO" ;; # SunOS, Linux, ELF HP-U
X | 84 *) LD_PRELOAD="$LIBCRYPTOSO $LIBSSLSO" ;; # SunOS, Linux, ELF HP-U
X |
85 esac | 85 esac |
86 _RLD_LIST="$LIBCRYPTOSO:$LIBSSLSO:DEFAULT" # Tru64, o32 IRIX | 86 _RLD_LIST="$LIBCRYPTOSO:$LIBSSLSO:DEFAULT" # Tru64, o32 IRIX |
87 DYLD_INSERT_LIBRARIES="$LIBCRYPTOSO:$LIBSSLSO" # MacOS X | 87 DYLD_INSERT_LIBRARIES="$LIBCRYPTOSO:$LIBSSLSO" # MacOS X |
88 export LD_PRELOAD _RLD_LIST DYLD_INSERT_LIBRARIES | 88 export LD_PRELOAD _RLD_LIST DYLD_INSERT_LIBRARIES |
89 fi | 89 fi |
90 | 90 |
91 exec "$@" | 91 cmd="$1${EXE_EXT}" |
| 92 shift |
| 93 exec "$cmd" "$@" |
OLD | NEW |