From: "Микола Стрєбков" <nick@mykola.org>
To: David Allsopp <david@allsopps.net>
Cc: "'OCaml List (caml-list@inria.fr)'" <caml-list@inria.fr>
Subject: Re: [Caml-list] Forcing gcc/ocamlopt to link against specific versions of libc.so and libm.so
Date: Mon, 24 Jan 2011 18:48:13 +0200 [thread overview]
Message-ID: <2ECBF6AC-5DB2-4C79-B6A0-BA9886A2687D@mykola.org> (raw)
In-Reply-To: <E51C5B015DBD1348A1D85763337FB6D9490B7B15@Remus.metastack.local>
Hi, David
On 24 січ. 2011, at 17:00, David Allsopp wrote:
> 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?
Look at the -nostartfiles, -nodefaultlibs and -nostdlib. Those options should allow you to pass exact libraries to linker.
--
Mykola Stryebkov
Public key: http://mykola.org/pubkey.txt
fpr: 0226 54EE C1FF 8636 36EF 2AC9 BCE9 CFC7 9CF4 6747
next prev parent reply other threads:[~2011-01-24 16:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-24 15:00 David Allsopp
2011-01-24 16:48 ` Микола Стрєбков [this message]
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=2ECBF6AC-5DB2-4C79-B6A0-BA9886A2687D@mykola.org \
--to=nick@mykola.org \
--cc=caml-list@inria.fr \
--cc=david@allsopps.net \
/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