[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug#219490: libtool: Completely dumb assumption can make -fPIC test
From: |
Scott James Remnant |
Subject: |
Re: Bug#219490: libtool: Completely dumb assumption can make -fPIC test fail |
Date: |
Fri, 07 Nov 2003 03:03:57 +0000 |
package libtool
tags 219490 upstream
thanks
On Thu, 2003-11-06 at 22:16, Josselin Mouette wrote:
> The test for whether the -fPIC flag is working is completely stupid.
> I've obtained this in the configure script of a package generated with
> libtool 1.5-4:
> [blah blah blah test of a 1-line program with -fPIC]
> if (exit $ac_status) && test -s "$ac_outfile"; then
> # The compiler can only warn and ignore the option if not recognized
> # So say no if there are warnings
>
> 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?
Scott
--
Have you ever, ever felt like this?
Had strange things happen? Are you going round the twist?
signature.asc
Description: This is a digitally signed message part
- Re: Bug#219490: libtool: Completely dumb assumption can make -fPIC test fail,
Scott James Remnant <=