From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q0DJfEvA003429 for ; Fri, 13 Jan 2012 20:41:14 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjUDAAKIEE8+3JIEgWdsb2JhbABCrS0iAQEWJiWCBYo6lzqfQoN9hQSCOWMElRKFUYxv X-IronPort-AV: E=Sophos;i="4.71,506,1320620400"; d="scan'208";a="126836500" Received: from vs.philou.ch ([62.220.146.4]) by mail4-smtp-sop.national.inria.fr with ESMTP; 13 Jan 2012 20:41:09 +0100 Received: from [192.168.1.102] (80-218-99-84.dclient.hispeed.ch [80.218.99.84]) by vs.philou.ch (Postfix) with ESMTPSA id 83B2569C5EB for ; Fri, 13 Jan 2012 20:41:08 +0100 (CET) From: Philippe Strauss Content-Type: text/plain; charset=iso-8859-1 Date: Fri, 13 Jan 2012 20:41:07 +0100 Message-Id: To: caml-list@inria.fr Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id q0DJfEvA003429 Subject: [Caml-list] ocamlmklib OSX/OpenGL weirdness 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/