From: Jacques GARRIGUE <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
Date: Sun, 02 Jan 2005 21:23:12 +0900 (JST) [thread overview]
Message-ID: <20050102.212312.125120610.garrigue@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: <20050102.103541.123758549.garrigue@math.nagoya-u.ac.jp>
> 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
next prev parent reply other threads:[~2005-01-02 12:23 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 [this message]
2005-01-04 3:29 ` Mary Fernandez
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=20050102.212312.125120610.garrigue@kurims.kyoto-u.ac.jp \
--to=garrigue@kurims.kyoto-u.ac.jp \
--cc=caml-list@inria.fr \
--cc=garrigue@math.nagoya-u.ac.jp \
--cc=mff@research.att.com \
/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;
as well as URLs for NNTP newsgroup(s).