<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2005/05/5cd9eb9e58970ad084b645623d8a51d5"
  from="Gerd Stolpmann &lt;info@g...&gt;"
  author="Gerd Stolpmann"
  date="2005-05-04T12:52:10"
  subject="Re: Godi-problem: setting C-compiler/linker"
  prev="2005/05/f6d48a0d367c7ff6af0411677828dd1d"
  next="2005/05/0a020b625ce987c9fbef63d56c7d7e05"
  prev-in-thread="2005/04/1f7f0112eb8c346eac991ccf2263b71d"
  prev-thread="2005/04/da9b1931127312c53b988ba6903ac97f"
  next-thread="2005/04/3766de3e27bea30d77b67caae7fbe8f2"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Godi-problem: setting C-compiler/linker">
<msg 
  url="2005/04/1f7f0112eb8c346eac991ccf2263b71d"
  from="Markus Mottl &lt;markus.mottl@g...&gt;"
  author="Markus Mottl"
  date="2005-04-20T14:11:32"
  subject="Godi-problem: setting C-compiler/linker">
<msg 
  url="2005/05/5cd9eb9e58970ad084b645623d8a51d5"
  from="Gerd Stolpmann &lt;info@g...&gt;"
  author="Gerd Stolpmann"
  date="2005-05-04T12:52:10"
  subject="Re: Godi-problem: setting C-compiler/linker">
</msg>
</msg>
</thread>

<contents>
Am Mittwoch, den 20.04.2005, 10:11 -0400 schrieb Markus Mottl:
&gt; Hi,
&gt; 
&gt; we have discovered a linking problem with the OCaml-distribution in
&gt; Godi. We want to be able to choose different C-compilers (e.g. gcc33)
&gt; when compiling or linking. Unfortunately, Godi hacks the
&gt; OCaml-distribution to insert some additional flags for finding shared
&gt; libraries. These flags are lost when we want to set a compiler/linker
&gt; using "-cc".
&gt; 
&gt; We could, of course, hard code these flags into our Makefiles, but
&gt; that's not particularly portable. Another way would be to link a dummy
&gt; file with flag "-verbose" and use pattern matching on the displayed
&gt; command line to extract the correct flags (very hacky, can easily
&gt; break).
&gt; 
&gt; 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
------------------------------------------------------------


</contents>

</message>

