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 KAA00897; Wed, 6 Nov 2002 10:10:50 +0100 (MET) 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 KAA01629 for ; Wed, 6 Nov 2002 10:10:49 +0100 (MET) Received: from quux.msi.co.jp (quux.msi.co.jp [192.51.54.2]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id gA69Al511345 for ; Wed, 6 Nov 2002 10:10:48 +0100 (MET) Received: from hide.msi.co.jp (hide.msi.co.jp [192.51.54.11]) by quux.msi.co.jp (8.9.3/3.7W01081412-msi-ms) with SMTP id SAA21237 for ; Wed, 6 Nov 2002 18:10:45 +0900 (JST) Received: from asuka.msi.co.jp ([192.51.53.132]) by hide.msi.co.jp (NAVGW 2.5.2.12) with SMTP id M2002110618104512487 for ; Wed, 06 Nov 2002 18:10:45 +0900 Received: from localhost (grover.msi.co.jp [192.51.53.141]) by asuka.msi.co.jp (8.8.8+Sun/8.8.8) with ESMTP id SAA14784 for ; Wed, 6 Nov 2002 18:10:28 +0900 (JST) To: caml-list@inria.fr Subject: Re: [Caml-list] How to create byte-code with static link In-Reply-To: <20021106180328C.garrigue@kurims.kyoto-u.ac.jp> References: <20021106162942Z.ikeda@msi.co.jp> <20021106180328C.garrigue@kurims.kyoto-u.ac.jp> X-Mailer: Mew version 1.94.2 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20021106181044J.ikeda@msi.co.jp> Date: Wed, 06 Nov 2002 18:10:44 +0900 From: IKEDA Katsumi X-Dispatcher: imput version 990905(IM130) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, From: Jacques Garrigue Message-ID: <20021106180328C.garrigue@kurims.kyoto-u.ac.jp> > From: IKEDA Katsumi > > > > In this case, dllfoo.so is linked as dynamic link. > > Not really linked: its name is just added to a table in your ocaml > bytecode. The system linker is not called. I understand. > > Is it possible link bar and libfoo.a as static link? > > Yes, you just have to add the -custom flag. > > ocamlc -custom -o bar -I /usr/local/foo/lib foo.cma bar.cmo OK, I will try it. > By the way, ocamlopt always links in custom mode. Thanks, -- IKEDA Katsumi ------------------- 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