From: Gerd Stolpmann <info@gerd-stolpmann.de>
To: Markus Mottl <markus.mottl@gmail.com>
Cc: Inria Ocaml Mailing List <caml-list@inria.fr>
Subject: Re: Godi-problem: setting C-compiler/linker
Date: Wed, 04 May 2005 14:52:01 +0200 [thread overview]
Message-ID: <1115211121.6317.159.camel@localhost.localdomain> (raw)
In-Reply-To: <f8560b80504200711620ec81b@mail.gmail.com>
Am Mittwoch, den 20.04.2005, 10:11 -0400 schrieb Markus Mottl:
> Hi,
>
> we have discovered a linking problem with the OCaml-distribution in
> Godi. We want to be able to choose different C-compilers (e.g. gcc33)
> when compiling or linking. Unfortunately, Godi hacks the
> OCaml-distribution to insert some additional flags for finding shared
> libraries. These flags are lost when we want to set a compiler/linker
> using "-cc".
>
> We could, of course, hard code these flags into our Makefiles, but
> that's not particularly portable. Another way would be to link a dummy
> file with flag "-verbose" and use pattern matching on the displayed
> command line to extract the correct flags (very hacky, can easily
> break).
>
> What would be a better (= simpler, more portable) solution to this problem?
If it is only gcc, it might be an option to use the -V switch. It
selects the version provided the compilers are installed into the same
tree. E.g. gcc -V 3.3 would select the 3.3 version.
I don't have a good answer if this is not an option. What I am generally
missing is an official way to get O'Caml's configuration from the
compiler, i.e. an extended ocamlc -v.
Gerd
--
------------------------------------------------------------
Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany
gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de
------------------------------------------------------------
prev parent reply other threads:[~2005-05-04 12:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-20 14:11 Markus Mottl
2005-05-04 12:52 ` Gerd Stolpmann [this message]
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=1115211121.6317.159.camel@localhost.localdomain \
--to=info@gerd-stolpmann.de \
--cc=caml-list@inria.fr \
--cc=markus.mottl@gmail.com \
/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