Jacques GARRIGUE wrote: > From: Christophe Raffalli > >>I tried to use godiva to make a camlimages packages and I think I found >>a bug in ocamlmklib, but I am not sure ... >> >>Using godi and my package, the following compilation line is generated >>and fails: >> >> > ocamlmklib -linkall -o ci_jpeg \ >> > jpeg.cmx oJpeg.cmx -cclib "-Wl,-R/usr/local/godi/lib >>-L/usr/local/godi/lib" -ljpeg; \ >> > fi >> > /usr/local/godi/bin/ocamlopt: unknown option `-L/usr/local/godi/lib'. >> > Usage: ocamlopt >> >>It seems that the option -cclib "-Wl,-R/usr/local/godi/lib >>-L/usr/local/godi/lib" is not well transmitted by ocamlmklib to >>ocamlopt ... > > > The bug is not in ocamlmklib, but in camlimages (or its godi port). > You're not supposed to pass -cclib options to ocamlmklib, except in > some very special cases. The above line should simply be: > ocamlmklib -linkall -o ci_jpeg \ > jpeg.cmx oJpeg.cmx -L/usr/local/godi/lib -ljpeg > and ocamlmklib would automatically add the necessary runtime paths in > the syntax required for this system. So this is probably a bug for the target make opt in the Makefiles of camlimages (make does not produce the -cclib)... > Jacques Garrigue -- Christophe Raffalli Université de Savoie Batiment Le Chablais, bureau 21 73376 Le Bourget-du-Lac Cedex tél: (33) 4 79 75 81 03 fax: (33) 4 79 75 87 42 mail: Christophe.Raffalli@univ-savoie.fr www: http://www.lama.univ-savoie.fr/~RAFFALLI --------------------------------------------- IMPORTANT: this mail is signed using PGP/MIME At least Enigmail/Mozilla, mutt or evolution can check this signature ---------------------------------------------