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,

/opt/ocaml-3.12.1/bin/ocamlopt.opt -shared -verbose plugins/example.cmx -o
plugins/example.cmxs -ccopt -v
+ as -o 'plugins/example.cmxs.startup.o' '/tmp/camlstartup2c31a2.s'
+ gcc -shared -o 'plugins/example.cmxs'   '-L/opt/ocaml-3.12.1/lib/ocaml' -v
'plugins/example.cmxs.startup.o' 'plugins/example.o'

Seems like a bug in ocamlopt; has anyone experienced similar situations? Am I
missing anything or any options in compilation? 

Thanks.

-- 
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

Reply via email to