X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=runtime%2Fmono-wrapper.in;h=0ec4811fb5d03657a1bd71f85d6dad373891235f;hb=362df4cc7b0d0c8b530994b819fd23a1e00c1edf;hp=bed9aa12f8b833875ff70076176e086896a9e7c6;hpb=b2262f41726a89c8209facb3ea9e4be9582422b5;p=mono.git diff --git a/runtime/mono-wrapper.in b/runtime/mono-wrapper.in index bed9aa12f8b..0ec4811fb5d 100644 --- a/runtime/mono-wrapper.in +++ b/runtime/mono-wrapper.in @@ -1,6 +1,15 @@ #! /bin/sh r='@mono_build_root@' MONO_CFG_DIR='@mono_cfg_dir@' -MONO_SHARED_DIR=$r/runtime -export MONO_CFG_DIR MONO_SHARED_DIR +PATH="$r/runtime/_tmpinst/bin:$PATH" +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" "$@"