[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFS: syx



On Fri, 27 Jun 2008 11:54:06 +0200, Mike Hommey wrote:

> On Fri, Jun 27, 2008 at 11:38:22AM -0500, Luca Bruno <lethalman88@gmail.com>
> wrote:
> 
> > On Fri, 27 Jun 2008 00:04:19 +0200
> > Mike Hommey <mh@glandium.org> wrote:
> > 
> > > I bet this thing builds using libtool, right ? libtool is known to be
> > > reordering gcc arguments, and with -Wl,--as-needed, that breaks
> > > everything, as it puts it at the end, making it useless.
> > 
> > Exactly. The problem is that I don't know how to put --as-needed before
> > $AM_LDFLAGS from the configure script. Should I create a patch to fix the
> > makefiles?
> 
> The only way I found to fool libtool is to set CC to "gcc -Wl,--as-needed".
> Another way is to patch libtool...

See #347650 for a patch [1] to ltmain.sh provided by Josselin Mouette.
That works for me most of the time. :)

David

[1]
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=60;filename=00_as-needed.patch;att=1;bug=347650

-- 
 . ''`.  Debian maintainer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://snipr.com/qa_page
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174

Attachment: signature.asc
Description: PGP signature


Reply to: