Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Godi-problem: setting C-compiler/linker
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-04-20 (14:11)
From: Markus Mottl <markus.mottl@g...>
Subject: Godi-problem: setting C-compiler/linker

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

What would be a better (= simpler, more portable) solution to this problem?

Best regards,

Markus Mottl