[parted-devel] autoconf

David Cantrell dcantrell at redhat.com
Thu Mar 15 17:54:27 CET 2007


On Wed, 2007-03-14 at 14:57 -0400, David Cantrell wrote:
> On Wed, 2007-03-14 at 15:38 -0300, Otavio Salvador wrote:
> > David Cantrell <dcantrell at redhat.com> writes:
> > 
> > > While working on parted-1.8.3, I'm hitting a problem with the configure
> > > script.  After bootstrapping the tree, a plain './configure' run fails
> > > to find libreadline.  I tracked down the problem to an incorrect linker
> > > flag used in the test:
> > >
> > > 	-Wl,--as-needed
> > >
> > > That's added to LDFLAGS early in the configure script run.  Here's the
> > > test line that is printed to the terminal:
> > >
> > > 	checking for flag to ignore unused libraries... -Wl,--as-needed
> > >
> > > How do we disable this test?  I know very little about autoconf and
> > > automake and don't know where to look.  Remove that from the LDFLAGS
> > > lets it compile correctly, but whatever the correct course of action is
> > > for autoconf/automake is what I want to do.
> > 
> > On Debian, we're supporting the --as-needed usage since it reduces the
> > dependency chain a lot.
> > 
> > I think that it might be optional.
> 
> I can't figure out how to disable the test in the autoconf script, but I
> have modified configure.ac to remove -Wl,--as-needed when checking for
> libreadline.

I reverted my change.  The problem was with libreadline on my system.
Fixed now so -Wl,--as-needed is correct as is in the generated configure
script.

-- 
David Cantrell <dcantrell at redhat.com>
Red Hat / Westford, MA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20070315/0090d457/attachment.pgp


More information about the parted-devel mailing list