X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=runtime%2Fmono-wrapper.in;h=7c2822f4b996ef75426ccfdb805e0f56e6a5b8d7;hb=919824ddd436a6b13f994c77e9910045fa729d16;hp=18c8cb5e47b959b19d0c26b29a9f2bc42ae35cce;hpb=457a8453f7a0b58d2eae114e3476e62765f9502a;p=mono.git diff --git a/runtime/mono-wrapper.in b/runtime/mono-wrapper.in index 18c8cb5e47b..7c2822f4b99 100644 --- a/runtime/mono-wrapper.in +++ b/runtime/mono-wrapper.in @@ -2,8 +2,8 @@ r='@mono_build_root@' MONO_CFG_DIR='@mono_cfg_dir@' PATH="$r/runtime/_tmpinst/bin:$PATH" -MONO_SHARED_DIR=$r/runtime -export MONO_CFG_DIR MONO_SHARED_DIR PATH +MONO_EXECUTABLE=${MONO_EXECUTABLE:-"$r/@mono_runtime@"} +export MONO_CFG_DIR PATH if [ -n "@nacl_self_host@" ]; then case "$@" in # gacutil.exe and mdoc.exe require filesystem functionality not @@ -13,4 +13,4 @@ if [ -n "@nacl_self_host@" ]; then */mcs.exe* | */gacutil.exe* | */mdoc.exe* ) exec /usr/local/bin/mono "$@";; esac fi -exec "$r/libtool" --mode=execute "$r/@mono_runtime@" --config "@mono_cfg_dir@/mono/config" "$@" +exec "$r/libtool" --mode=execute "${MONO_EXECUTABLE}" --config "@mono_cfg_dir@/mono/config" "$@"