X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=runtime%2Fmono-wrapper.in;h=33ff88d6f2143b1195c623b07b66c11a70a2fef9;hb=a984f20e232d863a9d3b7848023f78816aa282e7;hp=0ec4811fb5d03657a1bd71f85d6dad373891235f;hpb=28f473c41df72b278eaf9784c29c2b8fa2cbe06a;p=mono.git diff --git a/runtime/mono-wrapper.in b/runtime/mono-wrapper.in index 0ec4811fb5d..33ff88d6f21 100644 --- a/runtime/mono-wrapper.in +++ b/runtime/mono-wrapper.in @@ -2,14 +2,6 @@ r='@mono_build_root@' MONO_CFG_DIR='@mono_cfg_dir@' PATH="$r/runtime/_tmpinst/bin:$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 - # exposed in NaCl. - # mcs.exe was added to the list recently because mcs under NaCl - # no longer produces equivalent output. TODO: investigate - */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" "$@"