X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Xml.Linq%2FMakefile;h=c6ae6d9ab2fc599fcb34aa844561336558f624db;hb=56d21fac2ceee290cd20eec13d59a49ec325d1d4;hp=ef348be5db1b6904fc53eb2c2429688dc63350c9;hpb=f3792b1a75adec9fa085ae1eb2b34e1543addd52;p=mono.git diff --git a/mcs/class/System.Xml.Linq/Makefile b/mcs/class/System.Xml.Linq/Makefile index ef348be5db1..c6ae6d9ab2f 100644 --- a/mcs/class/System.Xml.Linq/Makefile +++ b/mcs/class/System.Xml.Linq/Makefile @@ -4,16 +4,20 @@ include ../../build/rules.make LIBRARY = System.Xml.Linq.dll LIB_MCS_FLAGS = \ - /r:System.dll \ - /r:System.Core.dll \ - /r:System.Xml.dll + -r:System.dll \ + -r:System.Core.dll \ + -r:System.Xml.dll + +ifneq (2.1, $(FRAMEWORK_VERSION)) +# This is a .NET 3.5+ only assembly, but built during the 2.0 build +LIB_MCS_FLAGS += -d:NET_3_5 -nowarn:1720 +endif TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) EXTRA_DISTFILES = -# This is a .NET 3.5 only assembly -VALID_PROFILE := $(filter net_2_0_bootstrap net_2_0 net_2_1, $(PROFILE)) +VALID_PROFILE := $(filter 2.0 2.1 4.0, $(FRAMEWORK_VERSION)) ifndef VALID_PROFILE LIBRARY_NAME = dummy-System.Xml.Linq.dll NO_INSTALL = yes