Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Wed, 15 Feb 2017 18:55:40 -0800
From: Charlie Kester <corky1951@...cast.net>
To: musl@...ts.openwall.com
Subject: Re: link failures when building projects that use libtool

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)!

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.