Merge pull request #2462 from ludovic-henry/monoerror-mono_object_new_specific
[mono.git] / mcs / class / Mono.CSharp / Makefile
index 2e67f5993926e04edda39a0b1f555dc5eed9439d..5fe1a18705aa43e4600800f4ed850a216c73066b 100644 (file)
@@ -4,9 +4,20 @@ include ../../build/rules.make
 
 LIBRARY = Mono.CSharp.dll
 
-LIB_MCS_FLAGS = -r:System.Core.dll -r:System.Xml.dll -r:System.dll
+LIB_REFS = System.Core System.Xml System
+LIB_MCS_FLAGS =
+
+ifdef MOBILE_STATIC
+LIB_MCS_FLAGS += -d:IOS_REFLECTION
+endif
+
+ifndef NO_THREAD_ABORT
+REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_THREAD_ABORT
+endif
 
 TEST_MCS_FLAGS = -r:System.Core.dll
 
+LIB_MCS_FLAGS += $(REFERENCE_SOURCES_FLAGS)
+
 include ../../build/library.make