2008-03-05 Jb Evain <jbevain@novell.com>
[mono.git] / mcs / class / System.Core / Makefile
index 9e58314def6774b7b64f24d93e6e6a97fd3560d5..8ade2906eaec18682d84a40451948680421e8849 100644 (file)
@@ -3,11 +3,17 @@ SUBDIRS =
 include ../../build/rules.make
 
 LIBRARY = System.Core.dll
-LIB_MCS_FLAGS = -langversion:linq -d:LIBC /r:$(corlib)
-NO_TEST = yes
 
-# This is a .NET 2.0 only assembly
-VALID_PROFILE := $(filter net_2_0_bootstrap net_2_0, $(PROFILE))
+LIB_MCS_FLAGS = -unsafe -d:LIBC /r:$(corlib)
+
+ifeq (2.0, $(FRAMEWORK_VERSION))
+LIB_MCS_FLAGS += -d:NET_3_5 -nowarn:1720
+endif
+
+TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
+
+# This is a .NET > 2.0 only assembly
+VALID_PROFILE := $(filter net_2_0_bootstrap net_2_0 net_2_1_raw, $(PROFILE))
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-System.Core.dll
 NO_INSTALL = yes
@@ -16,3 +22,4 @@ NO_TEST = yes
 endif
 
 include ../../build/library.make
+