On 12/08/2011 02:11 PM, Nicholas Lucaroni wrote: > 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.
It works if you add -cc "gcc -shared", or -ccopt -shared. Looking at call_linker in utils/ccomp.ml, it seems to be by design: the command to link executables and the command to link plugins are two different variables, that are both overridden by the -cc option. I suggest you to add -ccopt -shared when linking a plugin in your myocamlbuild.ml (or not using -cc at all). Cheers, -- Stéphane -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs
