Merge pull request #2720 from mono/fix-39325
[mono.git] / mcs / class / System.Xml.Linq / Makefile
index ef348be5db1b6904fc53eb2c2429688dc63350c9..3b058bd9c420c70a87efe20777ae75329c05b43b 100644 (file)
@@ -3,22 +3,21 @@ SUBDIRS =
 include ../../build/rules.make
 
 LIBRARY = System.Xml.Linq.dll
-LIB_MCS_FLAGS = \
-               /r:System.dll \
-               /r:System.Core.dll \
-               /r:System.Xml.dll
+LIB_REFS = System System.Core System.Xml
+LIB_MCS_FLAGS =
+
+NO_SERIALIZATION_PROFILE := $(filter basic build, $(PROFILE))
+ifndef NO_SERIALIZATION_PROFILE
+LIB_REFS += System.Runtime.Serialization
+LIB_MCS_FLAGS += -d:FEATURE_SERIALIZATION
+endif
+
+ifeq (2.1, $(FRAMEWORK_VERSION))
+LIB_MCS_FLAGS += -d:MONO_HYBRID_SYSTEM_XML
+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))
-ifndef VALID_PROFILE
-LIBRARY_NAME = dummy-System.Xml.Linq.dll
-NO_INSTALL = yes
-NO_SIGN_ASSEMBLY = yes
-NO_TEST = yes
-endif
-
 include ../../build/library.make