Add configure option to disable remoting.
authorRodrigo Kumpera <kumpera@gmail.com>
Wed, 27 Feb 2013 19:20:52 +0000 (14:20 -0500)
committerRodrigo Kumpera <kumpera@gmail.com>
Thu, 28 Feb 2013 19:55:18 +0000 (14:55 -0500)
Disabling remoting includes type proxies, x-domain communication and makes COM unusable.

configure.in

index 0fd24114bb38bf2377cdd14b18150bc319e53018..002b2f6a4331effc1c30688e2b97d61712d4c74b 100644 (file)
@@ -742,7 +742,7 @@ DISABLED_FEATURES=none
 
 AC_ARG_ENABLE(minimal, [  --enable-minimal=LIST      drop support for LIST subsystems.
      LIST is a comma-separated list from: aot, profiler, decimal, pinvoke, debug, appdomains, verifier, 
-     reflection_emit, reflection_emit_save, large_code, logging, com, ssa, generics, attach, jit, simd, soft_debug, perfcounters, normalization, assembly_remapping, shared_perfcounters,
+     reflection_emit, reflection_emit_save, large_code, logging, com, ssa, generics, attach, jit, simd, soft_debug, perfcounters, normalization, assembly_remapping, shared_perfcounters, remoting,
         sgen_remset, sgen_marksweep_par, sgen_marksweep_fixed, sgen_marksweep_fixed_par, sgen_copying.],
 [
        for feature in `echo "$enable_minimal" | sed -e "s/,/ /g"`; do
@@ -882,6 +882,11 @@ if test "x$mono_feature_disable_appdomains" = "xyes"; then
        AC_MSG_NOTICE([Disabled support for multiple appdomains.])
 fi
 
+if test "x$mono_feature_disable_remoting" = "xyes"; then
+       AC_DEFINE(DISABLE_REMOTING, 1, [Disable remoting support (This disables type proxies and make com non-functional)])
+       AC_MSG_NOTICE([Disabled remoting])
+fi
+
 if test "x$mono_feature_disable_sgen_remset" = "xyes"; then
        AC_DEFINE(DISABLE_SGEN_REMSET, 1, [Disable wbarrier=remset support in SGEN.])
        AC_MSG_NOTICE([Disabled wbarrier=remset support in SGEN.])