bug-libtool
[Top][All Lists]
Advanced

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

Re: Bug#219490: libtool: Completely dumb assumption can make -fPIC test


From: Ralf Wildenhues
Subject: Re: Bug#219490: libtool: Completely dumb assumption can make -fPIC test fail
Date: Tue, 26 Apr 2005 08:44:49 +0200
User-agent: Mutt/1.4.1i

package libtool
tags 219490 fixed-upstream
thanks

* Bob Friesenhahn wrote on Fri, Nov 07, 2003 at 05:27:38PM CET:
> On Fri, 7 Nov 2003, Josselin Mouette wrote:
> > Le ven 07/11/2003 à 04:03, Scott James Remnant a écrit :
> > > > The comments says all. Of course there can be other warnings! Especially
> > > > given that the test re-uses all previously set compiler flags!
> > > >
> > > > Luckily, GCC is not prone to give warnings with 1-liners C files. Still,
> > > > for example, using -Wpadded, it will on powerpc and alpha. This example
> > > > made hdf5 FTBFS because -fPIC was wrongly detected as non-working on
> > > > these arches.
> > > >
> > > Could you suggest an alternate test?
> >
> > Well, it could compare the compiler output without and with -fPIC.
*snip*
> Comparing the compiler output seems ok as long as the test source code
> is known to necessarily produce different output when -fPIC is
> supplied.

This should be solved in upstream Libtool now, but by comparing compiler
warnings with and without the PIC flag.  While it may not be as accurate
as comparing the generated objects, it is more portable, and hopefully
accurate enough.

Regards,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]