Patch to prepare for libtool update

Andrew Pinski
Sun Apr 15 21:34:00 GMT 2007

On 4/15/07, Steve Ellcey <> wrote:
> Andrew, do you explicitly use --disable-shared or do you let the value
> default?

I don't explicitly use --disable-shared and I let the value be default.

Also libobjc builds correctly in that it does not use -fPIC.

checking whether the linker
(/home/apinski/src/local/gcc/objdir-spu/./gcc/collect-ld) supports
shared libraries... no

Hmm, we get:
/bin/sh ../libtool --tag CXX --tag disable-shared --mode=compile
/home/apinski/src/local/gcc/objdir-spu/./gcc/xgcc -shared-libgcc
-B/home/apinski/src/local/gcc/objdir-spu/./gcc -nostdinc++
-B/home/apinski/gcc-spu/spu-elf/lib/ -isystem
/home/apinski/gcc-spu/spu-elf/include -isystem
-fno-implicit-templates -prefer-pic -Wall -Wextra -Wwrite-strings
-Wcast-qual  -fdiagnostics-show-location=once  -ffunction-sections
-fdata-sections  -g -O2   -c -o array_type_info.lo

Notice -prefer-pic which we did not get before this patch.

PIC is supported by spu-elf but not in all cases and the runtime
relocations is one case where it is not supported.

Also reading,

Which is the orginal patch which made the test for -prefer-pic.

-- Andrew

More information about the Libstdc++ mailing list