From: Philippe Strauss <philou@philou.ch>
To: caml-list@inria.fr
Subject: [Caml-list] ocamlmklib OSX/OpenGL weirdness
Date: Fri, 13 Jan 2012 20:41:07 +0100 [thread overview]
Message-ID: <A3392D38-35EB-47B8-9212-9FFE8AAA536F@philou.ch> (raw)
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/
next reply other threads:[~2012-01-13 19:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-13 19:41 Philippe Strauss [this message]
2012-01-13 20:48 ` Alan Schmitt
2012-01-13 21:26 ` Philippe Strauss
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A3392D38-35EB-47B8-9212-9FFE8AAA536F@philou.ch \
--to=philou@philou.ch \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).