From: <car@research.att.com>
To: <caml-list@yquem.inria.fr>
Subject: MacOS (darwin) shared library creation
Date: Thu, 30 Mar 2006 11:03:18 -0500 [thread overview]
Message-ID: <77E42FE8D777074488824B5D4056A2FE017CEBAF@NJFPSRVEXG2KCL.research.att.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1181 bytes --]
With the 3.08 version of O'Caml, our project was able to create a MacOS
X (darwin) shared library (dylib, not a bundle), by linking a mixture of
O'Caml code, C object code, and all of the supporting O'Caml libraries.
This allowed the users of our system to simply link to this one library
to build a C application that uses our library's C API. To do this, we
linked in the O'Caml .a libraries and libasmrun.a.
With 3.09.1 this no longer works. The compiler complains that
libasmrun.a has common symbols, which are incompatible with the creation
of a dylib. I took a look at the configure script for ocaml 3.09.1 and
see that for MacOS, the -fno-common flag is commented out of the
configuration.
Is there a reason -fno-common was commented out?
Even if I fix this, I will eventually run into difficulties because we
would have to require users of our C API to rebuild their OCaml with
this change. Also, we are planning to use GODI to distribute our
package, and can't rely on the no-common version of OCaml being used to
build our package.
Any suggestions?
Chris Rath
AT&T Labs Research
car@research.att.com
[-- Attachment #2: Type: text/html, Size: 4230 bytes --]
reply other threads:[~2006-03-30 16:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=77E42FE8D777074488824B5D4056A2FE017CEBAF@NJFPSRVEXG2KCL.research.att.com \
--to=car@research.att.com \
--cc=caml-list@yquem.inria.fr \
/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).