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
[Caml-list] [long] not-so-static binaries on Mac OS X
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] [long] not-so-static binaries on Mac OS X
From: Stefano Zacchiroli <>
> On Tue, Jul 08, 2003 at 05:10:59PM +0200, Xavier Leroy wrote:
> > I'd suggest you investigate the following options:
> Thanks for pointing them out.
> > - ocamlopt -noautolink
> This is not enough in my case because not all "-l" switches are coming
> from .cma libraries. For example "-ldl" is coming directly from the
> Config of the ocaml compiler module.

This -ldl is only there for dynamic loading of shared libraries.
You can remove it from config/Makefile, but you must also remove
#define SUPPORT_DYNAMIC_LINKING from config/s.h.

In ocaml 3.07, this nasty dependency on fink's dlcompat has been
removed, dynamic loading using the native darwin API.
Not yet released, but you can already get a preview from the ocaml CVS.

Jacques Garrigue

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: