Patch to prepare for libtool update
Andrew Pinski
pinskia@gmail.com
Sun Apr 15 21:34:00 GMT 2007
On 4/15/07, Steve Ellcey <sje@cup.hp.com> 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++
-L/home/apinski/src/local/gcc/objdir-spu/spu-elf/libstdc++-v3/src
-L/home/apinski/src/local/gcc/objdir-spu/spu-elf/libstdc++-v3/src/.libs
-B/home/apinski/gcc-spu/spu-elf/bin/
-B/home/apinski/gcc-spu/spu-elf/lib/ -isystem
/home/apinski/gcc-spu/spu-elf/include -isystem
/home/apinski/gcc-spu/spu-elf/sys-include
-I/home/apinski/src/local/gcc/libstdc++-v3/../gcc
-I/home/apinski/src/local/gcc/objdir-spu/spu-elf/libstdc++-v3/include/spu-elf
-I/home/apinski/src/local/gcc/objdir-spu/spu-elf/libstdc++-v3/include
-I/home/apinski/src/local/gcc/libstdc++-v3/libsupc++
-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
/home/apinski/src/local/gcc/libstdc++-v3/libsupc++/array_type_info.cc
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,
http://gcc.gnu.org/ml/gcc-patches/2001-05/msg00202.html
Which is the orginal patch which made the test for -prefer-pic.
-- Andrew
More information about the Libstdc++
mailing list