From ocamlbuild, possibly from my plugin for it, but I should be able to set cc and shared? They don't seem like mutually exclusive options.

On Thursday, December 8, 2011, Stéphane Glondu <steph@glondu.net> wrote:
> On 12/02/2011 07:43 PM, nicholas.r.lucaroni@gmail.com wrote:
>> I'm having an issue compiling a shared library for as a plugin w/ ocamlbuild.
>> Turning the verbose options on I see that ocamlopt generates the following
>> during the final linking,
>>
>> /opt/ocaml-3.12.1/bin/ocamlopt.opt -shared -verbose -cc gcc plugins/example.cmx
>> -o plugins/example.cmxs -ccopt -v
>> + as -o 'plugins/example.cmxs.startup.o' '/tmp/camlstartupe6993f.s'
>> + gcc -o 'plugins/example.cmxs'   '-L/opt/ocaml-3.12.1/lib/ocaml' -v
>> 'plugins/example.cmxs.startup.o' 'plugins/example.o'
>>
>> When I remove the -cc option from ocamlopt.opt, the shared flag is successfully
>> passed,
>
> Where does the -cc flag come from?
>
> --
> Stéphane
>