This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]