Merge pull request #1971 from angeloc/master
[mono.git] / mcs / build / profiles / monotouch.make
index c60d9398ffa190805439342211e43aae899fa056..bdeba2bac4e5701b52e7f365c5fcea413a2a0164 100644 (file)
@@ -6,7 +6,7 @@ BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PA
 MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
 
 # Use system resgen as we don't want local System.Windows.Forms dependency
-RESGEN resgen2
+RESGEN := $(dir $(shell which $(EXTERNAL_MCS)))resgen2
 
 profile-check:
        @:
@@ -20,7 +20,7 @@ PROFILE_MCS_FLAGS = \
        -d:NET_3_5 \
        -d:NET_4_0 \
        -d:NET_4_5 \
-       -d:MOBILE \
+       -d:MOBILE,MOBILE_LEGACY \
        -d:MONO \
        -d:DISABLE_CAS_USE \
        -d:MONOTOUCH \
@@ -38,3 +38,5 @@ NO_TEST = yes
 
 # the tuner takes care of the install
 NO_INSTALL = yes
+MOBILE_STATIC = yes
+MOBILE_PROFILE = yes