From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id E5AE7BB94 for ; Sun, 2 Jan 2005 13:23:16 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j02CNG41004948 for ; Sun, 2 Jan 2005 13:23:16 +0100 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 NAA22669 for ; Sun, 2 Jan 2005 13:23:15 +0100 (MET) Received: from kurims.kurims.kyoto-u.ac.jp (kurims.kurims.kyoto-u.ac.jp [130.54.16.1]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j02CNEfJ004941 for ; Sun, 2 Jan 2005 13:23:15 +0100 Received: from localhost (suiren [130.54.16.25]) by kurims.kurims.kyoto-u.ac.jp (8.13.1/8.13.1) with ESMTP id j02CNCOj026286; Sun, 2 Jan 2005 21:23:12 +0900 (JST) Date: Sun, 02 Jan 2005 21:23:12 +0900 (JST) Message-Id: <20050102.212312.125120610.garrigue@kurims.kyoto-u.ac.jp> To: garrigue@math.nagoya-u.ac.jp Cc: mff@research.att.com, caml-list@inria.fr Subject: Re: [Caml-list] MacOS port and file formats From: Jacques GARRIGUE In-Reply-To: <20050102.103541.123758549.garrigue@math.nagoya-u.ac.jp> References: <20041231.182319.04680184.garrigue@math.nagoya-u.ac.jp> <1104505684.8834.851.camel@localhost.localdomain> <20050102.103541.123758549.garrigue@math.nagoya-u.ac.jp> X-Mailer: Mew version 4.0.64 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 41D7E7B4.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 41D7E7B2.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 macos:01 native-code:01 o'caml:01 o'caml:01 runtime:01 pcre:01 usr:01 lib:01 ocaml:01 libunix:01 libunix:01 dylib:01 dlls:01 unix:01 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: > From: Mary Fernandez > > We create a native-code, dynamically linked > > C library that includes our O'Caml library, the O'Caml runtime, > > and several other C libraries that our application depends upon > > the unix, nums, str libraries plus an external PCRE library. > > If your concern is darwin, then there is a simple answer: you can just > get the installed static library, and turn it into a dynamic library, > as all C code on darwin is position independent. Just look for the > correct linker incantation in the darwin manual. In case you could not find it, here is the incantation: ld -dylib -all_load -flat_namespace -undefined suppress /usr/local/lib/ocaml/libunix.a -ldylib1.o -o libunix.dylib You can also link all these libraries directly in your dynamic linked C library, without creating individual dlls (but this works only for platforms such as darwin, where all code is position independent). Jacques Garrigue