From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id CAA06315; Wed, 9 Jul 2003 02:35:06 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id CAA29109 for ; Wed, 9 Jul 2003 02:35:05 +0200 (MET DST) Received: from kurims.kurims.kyoto-u.ac.jp (kurims.kurims.kyoto-u.ac.jp [130.54.16.1]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h690Z3f12082 for ; Wed, 9 Jul 2003 02:35:03 +0200 (MET DST) Received: from localhost (suiren.kurims.kyoto-u.ac.jp [130.54.16.25]) by kurims.kurims.kyoto-u.ac.jp (8.9.3p2/3.7W) with ESMTP id JAA21532; Wed, 9 Jul 2003 09:34:45 +0900 (JST) To: zack@bononia.it Cc: caml-list@inria.fr Subject: Re: [Caml-list] [long] not-so-static binaries on Mac OS X In-Reply-To: <20030708160220.GA7346@fistandantilus.takhisis.org> References: <20030708141106.GA6500@fistandantilus.takhisis.org> <20030708171059.A12830@pauillac.inria.fr> <20030708160220.GA7346@fistandantilus.takhisis.org> X-Mailer: Mew version 1.94.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20030709093505K.garrigue@kurims.kyoto-u.ac.jp> Date: Wed, 09 Jul 2003 09:35:05 +0900 From: Jacques Garrigue X-Dispatcher: imput version 20000228(IM140) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; jacques:01 caml-list:01 binaries:01 bononia:01 ocamlopt:01 -noautolink:01 -ldl:01 darwin:01 api:01 compiler:01 ocaml:01 garrigue:01 0200,:01 makefile:02 config:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners