summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2013-11-12 21:49:15 +0100
committerAndy Polyakov <appro@openssl.org>2013-11-12 22:01:20 +0100
commit7ed244a0b34f42e32f1366efe9df619d6709d6e6 (patch)
treef3051adf49b7baca29ab0c6e83aad28b796d094b /util
parente94a23876c808c0b70887110bb6ea2b50108f994 (diff)
Make Makefiles OSF-make-friendly.
PR: 3165 (cherry picked from commit d1cf23ac86c05b22b8780e2c03b67230564d2d34)
Diffstat (limited to 'util')
-rwxr-xr-xutil/shlib_wrap.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/shlib_wrap.sh b/util/shlib_wrap.sh
index 9416d593d2..8775cb5411 100755
--- a/util/shlib_wrap.sh
+++ b/util/shlib_wrap.sh
@@ -90,4 +90,8 @@ fi
cmd="$1${EXE_EXT}"
shift
-exec "$cmd" "$@"
+if [ $# -eq 0 ]; then
+ exec "$cmd" # old sh, such as Tru64 4.x, fails to expand empty "$@"
+else
+ exec "$cmd" "$@"
+fi