[profiles] Fix MOBILE assemblies and tests compilation + Rename MOBILE to AOT_HYBRID
[mono.git] / mcs / class / corlib / Makefile
index c05eb88982187a2070f9c67e3eec257a9d60caf9..882a3cf0419bbb6d8ac57d67550e4e3a1b7e40a0 100644 (file)
@@ -67,8 +67,10 @@ DEFAULT_REFERENCES =
 TEST_LIB_REFS = System.Core System
 
 ifndef MOBILE_STATIC
+ifneq ($(PROFILE),aot_hybrid)
 TEST_LIB_REFS += Mono.Posix
 endif
+endif
 
 # System.IO/DirectoryInfoTest.cs needs Mono.Posix
 TEST_MCS_FLAGS += -debug -nowarn:168,219,618,672 -unsafe \