This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to update libtool in GCC and binutils trees
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: schwab at suse dot de
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 29 Mar 2007 10:09:28 -0700 (PDT)
- Subject: Re: Patch to update libtool in GCC and binutils trees
> > So something is not getting compiled with -fPIC but I don't know why.
>
> I sometimes see that configure thinks -fPIC is not usable. I'd suggest to
> look at config.log to check that the test does not find a spurious
> failure.
>
> Andreas.
Interesting, config.log does show that -fPIC is supported but then
later in the log file I see:
LIBSUPCXX_PICFLAGS=''
I think this is related to libstdc++-v3/configure.ac:
if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
grep "enable shared" > /dev/null;
then
LIBSUPCXX_PICFLAGS=-prefer-pic
else
LIBSUPCXX_PICFLAGS=
fi
AC_SUBST(LIBSUPCXX_PICFLAGS)
The new libtool seems to still be putting out "enable shared" so I am
not sure why this would be different now.
Steve Ellcey
sje@cup.hp.com