[aot] fix linker invocation for llvm mode on linux
authorBernhard Urban <bernhard.urban@xamarin.com>
Thu, 15 Dec 2016 06:41:45 +0000 (07:41 +0100)
committerBernhard Urban <bernhard.urban@xamarin.com>
Thu, 15 Dec 2016 12:49:48 +0000 (13:49 +0100)
commitdbaca79c4797350ac59026278561e325a86b7a40
tree97e6a451bf768bd0d3fd5f4b750c78e31f0a0476
parentd1d54df3acee41dbc2219d6cdaf0061667eac2c4
[aot] fix linker invocation for llvm mode on linux

clang++ should only be used for llvm_only (aka. bitcode) mode.

this is a follow up fix for:
https://github.com/mono/mono/commit/7d238ddd5edeeb42cec5e07b6d6527d16332f921
and
https://github.com/mono/mono/commit/fc5305d2af1b6891b05cb82342bf92d4659546e1

fixes https://bugzilla.xamarin.com/show_bug.cgi?id=46375
mono/mini/aot-compiler.c