Gentoo Archives: gentoo-devhelp

From: Peter Volkov <pva@g.o>
To: Thomas Kahle <tom111@×××.de>
Cc: gentoo-devhelp@l.g.o
Subject: Re: [gentoo-devhelp] autotools and as-needed
Date: Sun, 16 Aug 2009 19:03:13
Message-Id: 1250449375.2185.13911.camel@localhost
In Reply to: [gentoo-devhelp] autotools and as-needed by Thomas Kahle
В Срд, 12/08/2009 в 00:03 +0200, Thomas Kahle пишет:
> the following check in configure.ac fails with --as-needed but works > without it. Any hints what is wrong ? Thanks / Thomas
Common reason for failure with --as-needed is the order of libraries. In you previous mail you wrote that with sed "s/\"-lntl\"/\"-lntl\" \"-lgf2x -lntl\"/" -i "${S}/configure.ac" it works but here:
> for lib in "" "-lntl" "-lntl -lgf2x"
I see different order. Try to change order of -lgf2x and -lntl inside ebuild. Also sed 's/"-lntl"/"-lntl" "-lgf2x -lntl"/' -i "${S}/configure.ac" is shorter and easier to read. -- Peter.

Replies

Subject Author
Re: [gentoo-devhelp] autotools and as-needed Thomas Kahle <tom111@×××.de>