From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id pB8C67UE024385 for ; Thu, 8 Dec 2011 13:06:07 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ar0CAPam4E6K54gDgWdsb2JhbABDhQalXyIBARYmJYFyAQEFIw8BRQEQCxgCAgUWCwICCQMCAQIBDzYTAQUCAq1akTaBNIJDhCyCAoEWBJRrhUuFHoc+ X-IronPort-AV: E=Sophos;i="4.71,319,1320620400"; d="scan'208";a="134537348" Received: from rouge.crans.org ([138.231.136.3]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 08 Dec 2011 13:06:02 +0100 Received: from localhost (localhost.crans.org [127.0.0.1]) by rouge.crans.org (Postfix) with ESMTP id 133F885EE; Thu, 8 Dec 2011 13:06:02 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at crans.org Received: from rouge.crans.org ([10.231.136.3]) by localhost (rouge.crans.org [10.231.136.3]) (amavisd-new, port 10024) with LMTP id P+d6pdjIqDmP; Thu, 8 Dec 2011 13:06:02 +0100 (CET) Received: from [152.81.3.42] (wencory.loria.fr [152.81.3.42]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by rouge.crans.org (Postfix) with ESMTPSA id E07C285EC; Thu, 8 Dec 2011 13:06:01 +0100 (CET) Message-ID: <4EE0A829.1000902@glondu.net> Date: Thu, 08 Dec 2011 13:06:01 +0100 From: =?UTF-8?B?U3TDqXBoYW5lIEdsb25kdQ==?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 MIME-Version: 1.0 To: nicholas.r.lucaroni@gmail.com CC: caml-list@inria.fr References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [Caml-list] Compiling shared library with ocamlopt On 12/02/2011 07:43 PM, nicholas.r.lucaroni@gmail.com wrote: > 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, Where does the -cc flag come from? -- Stéphane