From: Mary Fernandez <mff@research.att.com>
To: Jacques GARRIGUE <garrigue@kurims.kyoto-u.ac.jp>
Cc: garrigue@math.nagoya-u.ac.jp, caml-list@inria.fr
Subject: Re: [Caml-list] MacOS port and file formats
Date: Mon, 03 Jan 2005 22:29:21 -0500 [thread overview]
Message-ID: <1104809361.4159.52.camel@localhost.localdomain> (raw)
In-Reply-To: <20050102.212312.125120610.garrigue@kurims.kyoto-u.ac.jp>
Jacques,
Thanks for all the detailed info and help. We decided to just use
the static libraries as it simplifies our other ports,
but this is all very helpful info. We have our MacOS
library working with C & Java.
Thanks, Mary
On Sun, 2005-01-02 at 07:23, Jacques GARRIGUE wrote:
> > From: Mary Fernandez <mff@research.att.com>
> > > 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
--
Mary Fernandez <mff@research.att.com>
AT&T Labs - Research
prev parent reply other threads:[~2005-01-04 3:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-31 2:02 Mary Fernandez
2004-12-31 9:23 ` [Caml-list] " Jacques Garrigue
2004-12-31 15:08 ` Mary Fernandez
2005-01-02 1:35 ` Jacques Garrigue
2005-01-02 12:23 ` Jacques GARRIGUE
2005-01-04 3:29 ` Mary Fernandez [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1104809361.4159.52.camel@localhost.localdomain \
--to=mff@research.att.com \
--cc=caml-list@inria.fr \
--cc=garrigue@kurims.kyoto-u.ac.jp \
--cc=garrigue@math.nagoya-u.ac.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox