Automatically define MONO_DISABLE_GSHAREDVT variable when gsharedvt isn't enabled
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 29 Feb 2016 23:38:39 +0000 (00:38 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 1 Mar 2016 13:31:50 +0000 (14:31 +0100)
commitbee9ca6aab88f76c3e719f7a52fa50a29eb941ca
tree28abc55b9646bd5ae16e3abd9ab3f8ef68cb473a
parenta989ac959f5ae1a68b5a4432b26dd8cf42b09d3d
Automatically define MONO_DISABLE_GSHAREDVT variable when gsharedvt isn't enabled

Before when the variable wasn't set (= the default), the mobile_static profile would try to pass
the -O=gsharedvt flag even when gsharedvt is not enabled (e.g. when building without mono-extensions)
which causes AOTing to fail.

A better solution is to export the variable from configure.ac into the mcs build system depending
on whether gsharedvt is enabled at configure time.
configure.ac