caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Nicholas Lucaroni <nicholas.r.lucaroni@gmail.com>
To: "Stéphane Glondu" <steph@glondu.net>
Cc: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] Compiling shared library with ocamlopt
Date: Thu, 8 Dec 2011 08:11:04 -0500	[thread overview]
Message-ID: <CAB6W5F7ZnSFJExReiOvjRTuFvj79hphz2ntT=NnuV9BC_yPCCQ@mail.gmail.com> (raw)
In-Reply-To: <4EE0A829.1000902@glondu.net>

[-- Attachment #1: Type: text/plain, Size: 971 bytes --]

From 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éphane Glondu <steph@glondu.net> 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éphane
>

[-- Attachment #2: Type: text/html, Size: 1260 bytes --]

  reply	other threads:[~2011-12-08 13:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-02 18:43 nicholas.r.lucaroni
2011-12-08 12:06 ` Stéphane Glondu
2011-12-08 13:11   ` Nicholas Lucaroni [this message]
2011-12-08 13:35     ` Stéphane Glondu
2011-12-08 20:26       ` Nick Lucaroni

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='CAB6W5F7ZnSFJExReiOvjRTuFvj79hphz2ntT=NnuV9BC_yPCCQ@mail.gmail.com' \
    --to=nicholas.r.lucaroni@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=steph@glondu.net \
    /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).