From: "Garrett Jones" <alkaline9@gmail.com>
To: "Eric Merritt" <cyberlync@gmail.com>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Is there a way to statically link an ocaml app compiled to native code against glibc?
Date: Wed, 28 Nov 2007 21:14:28 -0800 [thread overview]
Message-ID: <fc6d55950711282114p22bc6bc5rf9f14285c41e778b@mail.gmail.com> (raw)
In-Reply-To: <f69c840c0711281606n710cacc5j1bf6d2a22af5c1f1@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1639 bytes --]
(resending to include the list)
This setting works for me with OCamlMakefile:
LDFLAGS = -Wl,-Bstatic
On Nov 28, 2007 4:06 PM, Eric Merritt <cyberlync@gmail.com> wrote:
> Everyone,
>
> I have spent quite a bit of time digging around for this on the net
> with now luck. We have a pretty simple ocaml app for which we would
> like to distribute an executable binary. For the most part this works.
> However, we would like to minimize the number of binaries that we are
> forced to distribute. We would also like to avoid any confusion on the
> part of our users around figuring out which version of glibc they are
> using. For example, we would like to avoid distributing a binary for
> each version of glibc available. Its more work for us and has a chance
> of confusing some of the folks using our work. Considering the
> simplicity of our binary it seems like a good solution would be to be
> to just statically link against glibc (our only non-ocaml dependency).
> So it would be great if someone could give me pointers to docs that
> describe how to do this. Extra points if I can easily do this with
> OCamlMakefile. If there is another way to accomplish our goals I am
> more then willing to entertain them, as there are a lot of potential
> problems involved with static linking against glibc.
>
> Thanks,
> Eric
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
[-- Attachment #2: Type: text/html, Size: 2219 bytes --]
next prev parent reply other threads:[~2007-11-29 5:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-29 0:06 Eric Merritt
2007-11-29 0:18 ` [Caml-list] " Gerd Stolpmann
2007-11-29 5:14 ` Garrett Jones [this message]
2007-11-29 9:36 ` Sylvain Le Gall
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=fc6d55950711282114p22bc6bc5rf9f14285c41e778b@mail.gmail.com \
--to=alkaline9@gmail.com \
--cc=caml-list@inria.fr \
--cc=cyberlync@gmail.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