Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] How to create byte-code with static link
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: IKEDA Katsumi <ikeda@m...>
Subject: Re: [Caml-list] How to create byte-code with static link
Hi,

From: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
Message-ID: <20021106180328C.garrigue@kurims.kyoto-u.ac.jp>
> From: IKEDA Katsumi <ikeda@msi.co.jp>
> > 
> > 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  <ikeda@msi.co.jp>
-------------------
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