Skip to content

Commit

Permalink
[runtime] Remove definitions of MONO_SHARED_DIR from scripts, its not…
Browse files Browse the repository at this point in the history
… needed anymore.
  • Loading branch information
vargaz committed Feb 25, 2015
1 parent 9e79098 commit 0bab8ed
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
6 changes: 3 additions & 3 deletions mono/tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ TEST_PROG = ../interpreter/mint

JITTEST_PROG = $(if $(VALGRIND), valgrind $(VALGRIND_ARGS),) $(if $(SGEN),$(top_builddir)/mono/mini/mono-sgen,$(top_builddir)/mono/mini/mono)

TEST_PROG_RUN = MONO_SHARED_DIR=$(mono_build_root)/runtime MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode=execute $(TEST_PROG)
JITTEST_PROG_RUN = MONO_SHARED_DIR=$(mono_build_root)/runtime MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode=execute $(JITTEST_PROG)
TEST_PROG_RUN = MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode=execute $(TEST_PROG)
JITTEST_PROG_RUN = MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode=execute $(JITTEST_PROG)

RUNTIME_ARGS=--config tests-config --optimize=all --debug

Expand Down Expand Up @@ -883,7 +883,7 @@ stresstest: $(STRESS_TESTS)
testbundle: console.exe
@echo "Testing mkbundle..."
@$(MKBUNDLE) --static console.exe > mkbundle.stdout
@$(with_mono_path) MONO_CFG_DIR=$(mono_cfg_dir) MONO_SHARED_DIR=$(mono_build_root)/runtime ./a.out >> mkbundle.stdout
@$(with_mono_path) MONO_CFG_DIR=$(mono_cfg_dir) ./a.out >> mkbundle.stdout
@- rm -rf a.out

EXTRA_DIST += load-missing.il t-missing.cs load-exceptions.cs
Expand Down
4 changes: 2 additions & 2 deletions mono/tests/exiting/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ srcdir = .
TEST_PROG = ../../interpreter/mint
JITTEST_PROG = ../../mini/mono

TEST_PROG_RUN = MONO_PATH=$(mcs_topdir)/class/lib/default MONO_SHARED_DIR=$(mono_build_root)/runtime $(TEST_PROG)
JITTEST_PROG_RUN = MONO_PATH=$(mcs_topdir)/class/lib/default MONO_SHARED_DIR=$(mono_build_root)/runtime $(JITTEST_PROG)
TEST_PROG_RUN = MONO_PATH=$(mcs_topdir)/class/lib/default $(TEST_PROG)
JITTEST_PROG_RUN = MONO_PATH=$(mcs_topdir)/class/lib/default $(JITTEST_PROG)

RUNTIME_ARGS=--config tests-config --optimize=all

Expand Down
4 changes: 1 addition & 3 deletions runtime/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,9 @@ install-data:
uninstall:
cd $(mcs_topdir) && $(MAKE) NO_DIR_CHECK=1 PROFILES='$(build_profiles)' RUNTIME_HAS_CONSISTENT_GACDIR=yes prefix=$(prefix) uninstall-profiles

## mono --wapi=semdel will probably not delete the semaphore if someone is crazy enough to do a 'make -j distclean' :-)
clean-local:
cd $(mcs_topdir) && $(MAKE) NO_DIR_CHECK=1 PROFILES='$(build_profiles)' clean-profiles
-./mono-wrapper --wapi=semdel
-rm -fr $(etctmp) $(tmpinst) .wapi
-rm -fr $(etctmp) $(tmpinst)

endif BUILD_MCS

Expand Down
3 changes: 1 addition & 2 deletions runtime/mono-wrapper.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
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
export MONO_CFG_DIR PATH
if [ -n "@nacl_self_host@" ]; then
case "$@" in
# gacutil.exe and mdoc.exe require filesystem functionality not
Expand Down
3 changes: 1 addition & 2 deletions runtime/monodis-wrapper.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#! /bin/sh
r='@mono_build_root@'
MONO_CFG_DIR='@mono_cfg_dir@'
MONO_SHARED_DIR=$r/runtime
export MONO_CFG_DIR MONO_SHARED_DIR
export MONO_CFG_DIR
exec "$r/libtool" --mode=execute -dlopen "$r/mono/mini/libmono-2.0.la" "$r/mono/dis/monodis" "$@"

0 comments on commit 0bab8ed

Please sign in to comment.