From: David Allsopp <david@allsopps.net>
To: "'OCaml List (caml-list@inria.fr)'" <caml-list@inria.fr>
Subject: [Caml-list] Forcing gcc/ocamlopt to link against specific versions of libc.so and libm.so
Date: Mon, 24 Jan 2011 15:00:21 +0000 [thread overview]
Message-ID: <E51C5B015DBD1348A1D85763337FB6D9490B7B15@Remus.metastack.local> (raw)
[I think this question is more about gcc options than anything else so please don't be put off by the fact it's about FreeBSD!]
I'm working with OCaml 3.12.0 on FreeBSD 8.1 and need to produce native binaries which are compatible with FreeBSD 6.4. I have therefore installed the compat6x package. FreeBSD 8.1 has /lib/libm.so.5 and /lib/libc.so.7 and the compat6x package gives me /usr/local/lib/compat/libm.so.4 and /usr/local/lib/compat/libc.so.6 as they're what shipped in FreeBSD 6.x
My question therefore is twofold:
1. What do I have to pass to gcc to tell it to use the older libm.so.4 and libc.so.6?
2. What's the best way to pass those instructions to OCaml's configure script?
At the moment, after running configure I've simply edited config/Makefile and put -static before -lm in NATIVECCLIBS but that's obviously producing executables which are a bit larger than I'd like (and I expect that kills native dynlink as well?)
Any help much appreciated!
David
next reply other threads:[~2011-01-24 15:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-24 15:00 David Allsopp [this message]
2011-01-24 16:48 ` Микола Стрєбков
2011-01-24 21:48 ` David Allsopp
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=E51C5B015DBD1348A1D85763337FB6D9490B7B15@Remus.metastack.local \
--to=david@allsopps.net \
--cc=caml-list@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