Bug#219490: libtool: Completely dumb assumption can make -fPIC test fail
tags 219490 fixed-upstream
* 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.
> Comparing the compiler output seems ok as long as the test source code
> is known to necessarily produce different output when -fPIC is
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