caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] ocamlmklib OSX/OpenGL weirdness
@ 2012-01-13 19:41 Philippe Strauss
  2012-01-13 20:48 ` Alan Schmitt
  0 siblings, 1 reply; 3+ messages in thread
From: Philippe Strauss @ 2012-01-13 19:41 UTC (permalink / raw)
  To: caml-list

Hello,

I'm running 3.12.1 plus Jérémie Dimino gprint patch, and an up to date godi setup.
Trying to build Florent Monnier glMlite, I'm finding this singularity:

ocamlopt.opt -verbose -g -c GL.ml
	+ as -arch x86_64 -o 'GL.o' '/var/folders/Yj/YjSPq8kWEbucqe1B6qhw4E+++TI/-Tmp-/camlasm11ff8f.s'

ocamlmklib -verbose  -o  GL  GL.cmx  -framework OpenGL -lgl_stubs
	+ /opt/godi312/bin/ocamlopt -a -o GL.cmxa  GL.cmx -cclib -lGL -ccopt -L/opt/godi312/lib -ccopt -framework -ccopt OpenGL -cclib -lgl_stubs

it seems (or I missed something) that ocamlmklib add -lGL when it invokes ocamlopt, it should not on OSX, which requires "-framework OpenGL".

BTW, the two -ccopt -framework -ccopt OpenGL is a trickery for whitespace containing linker arguments ?


Regards

--
Philippe Strauss
Why OCaml : http://www.philou.ch/






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-13 21:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-13 19:41 [Caml-list] ocamlmklib OSX/OpenGL weirdness Philippe Strauss
2012-01-13 20:48 ` Alan Schmitt
2012-01-13 21:26   ` Philippe Strauss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).