[build] Change the way how mcs references are passed to compiler to always use full...
[mono.git] / mcs / class / Mono.Dynamic.Interpreter / Makefile
index fd4c14ecf711e11a6a7e1b702eb3222d10fda922..6d9565ccbeec7bcc54cb52a404691fa3c3ee9a05 100644 (file)
@@ -4,14 +4,17 @@ include ../../build/rules.make
 
 LIBRARY = Mono.Dynamic.Interpreter.dll
 
-LIB_MCS_FLAGS = -r:System.dll -r:System.Core.dll \
+LIB_REFS = System
+LIB_MCS_FLAGS = \
        -d:FEATURE_CORE_DLR,FEATURE_DBNULL,FEATURE_DEFAULT_PARAMETER_VALUE,FEATURE_GET_TYPE_INFO,FEATURE_VARIANCE,FEATURE_SERIALIZATION,CLR45 \
        -d:MONO_INTERPRETER \
        -delaysign -keyfile:../mono.pub
 
-ifeq (monotouch, $(subst _runtime,,$(PROFILE)))
+ifdef MOBILE_STATIC
 mono_dynamic_interpreter_deps = $(the_libdir_base)plaincore/System.Core.dll
-LIB_MCS_FLAGS += -lib:$(the_libdir_base)plaincore
+LIB_REFS += plaincore/System.Core
+else
+LIB_REFS += System.Core
 endif
 
 include ../../build/library.make
@@ -19,4 +22,6 @@ include ../../build/library.make
 $(the_libdir_base)Mono.Dynamic.Interpreter.dll: $(mono_dynamic_interpreter_deps)
 
 $(the_libdir_base)plaincore/System.Core.dll:
-       (cd ../System.Core; $(MAKE) $@)
\ No newline at end of file
+       (cd ../System.Core; $(MAKE) $@)
+
+.NOTPARALLEL: $(the_libdir_base)plaincore/System.Core.dll