From: Charlie Kester <corky1951@comcast.net>
To: musl@lists.openwall.com
Subject: Re: link failures when building projects that use libtool
Date: Wed, 15 Feb 2017 18:55:40 -0800 [thread overview]
Message-ID: <20170216025540.GE20945@comcast.net> (raw)
In-Reply-To: <20170216022910.GL1520@brightrain.aerifal.cx>
On Wed 15 Feb 2017 at 18:29:11 PST Rich Felker wrote:
>
>Of course the other issue is that you're trying to produce
>static-linked programs (where this wouldn't be an issue to begin with,
>since your system gcc doesn't do pie with static linking, since glibc
>can't handle it) but libtool is suppressing static linking. You can
>fix this by passing both -static (which libtool needs to see) and
>--static (which libtool doesn't know about, so it safely makes it
>through to gcc without getting stripped by libtool). This is a
>standard trick for fixing broken programs that use libtool.
Adding --static to LDFLAGS solved the problem building the
executables that come with libzip. I expect it will also work for the
other libtool-using projects I've had trouble with.
Thanks for the speedy reply (and, of course, for musl itself)!
prev parent reply other threads:[~2017-02-16 2:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-16 2:06 Charlie Kester
2017-02-16 2:29 ` Rich Felker
2017-02-16 2:55 ` Charlie Kester [this message]
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=20170216025540.GE20945@comcast.net \
--to=corky1951@comcast.net \
--cc=musl@lists.openwall.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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
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).