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 pB8DBBsZ026800 for ; Thu, 8 Dec 2011 14:11:11 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjgBANy24E7RVdgvimdsb2JhbABDqV6BAQgiAQEBCAsNBxIGIYFyAQEBAQMSAiwBGx0BAwwGBQQBBg0uIQEBEQEFARwGEyKiMAqLZIJrhFQ9iHECBQyDa4dEBIgujD2KaYMHPYQX X-IronPort-AV: E=Sophos;i="4.71,319,1320620400"; d="scan'208,223";a="122587990" Received: from mail-qw0-f47.google.com ([209.85.216.47]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 08 Dec 2011 14:11:05 +0100 Received: by qadb17 with SMTP id b17so471279qad.6 for ; Thu, 08 Dec 2011 05:11:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=QR01AvJcK8omisttw2y6aqkRack7tiZcqd+aEgBTylE=; b=lZBqWHt/sh7WoLNzW5Gu1zdx3IFjYo0QES4kWqy0bWBOY4EJFXStcw0eZ5QqAZuu0H 6j+cPPnZUacPHchEQxfqxkb6/lWoU9/b+CaTGO1QeCEE3akUGv1GF1LjXik6e9KegMAo qOsR+D4+kl12M9HEHtFFUUUB2jXqQQNNQXj/o= MIME-Version: 1.0 Received: by 10.50.88.199 with SMTP id bi7mr3598909igb.45.1323349864420; Thu, 08 Dec 2011 05:11:04 -0800 (PST) Received: by 10.50.42.163 with HTTP; Thu, 8 Dec 2011 05:11:04 -0800 (PST) In-Reply-To: <4EE0A829.1000902@glondu.net> References: <4EE0A829.1000902@glondu.net> Date: Thu, 8 Dec 2011 08:11:04 -0500 Message-ID: From: Nicholas Lucaroni To: =?ISO-8859-1?Q?St=E9phane_Glondu?= Cc: "caml-list@inria.fr" Content-Type: multipart/alternative; boundary=e89a8f3ba0db95150604b39466e0 Subject: Re: [Caml-list] Compiling shared library with ocamlopt --e89a8f3ba0db95150604b39466e0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable =46rom ocamlbuild, possibly from my plugin for it, but I should be able to set cc and shared? They don't seem like mutually exclusive options. On Thursday, December 8, 2011, St=E9phane Glondu wrote: > 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=E9phane > --e89a8f3ba0db95150604b39466e0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable >From ocamlbuild, possibly from my plugin for it, but I should be able to se= t cc and shared? They don't seem like mutually exclusive options.
On Thursday, December 8, 2011, St=E9phane Glondu <steph@glondu.net> wrote:
> On 12/02/2011 07:43 PM, nicholas.r.lucaroni@gmail.com wrote:
>> I'm having an i= ssue compiling a shared library for as a plugin w/ ocamlbuild.
>> = Turning the verbose options on I see that ocamlopt generates the following<= br> >> 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' =A0 '-L/opt/ocaml-3.12= .1/lib/ocaml' -v
>> 'plugins/example.cmxs.startup.o' &= #39;plugins/example.o'
>>
>> When I remove the -cc op= tion from ocamlopt.opt, the shared flag is successfully
>> passed,
>
> Where does the -cc flag come from?
>=
> --
> St=E9phane
> --e89a8f3ba0db95150604b39466e0--