Compiling libstdc++ lib without PIC
David Hallas Andersen
david@hallas.nu
Wed Aug 31 12:38:00 GMT 2005
Hi All,
I am trying to cross compile gcc-3.4.2 including the stdc++ library to an arm7
target, and I have some problems compiling the library. The problem is that
my target does not support shared libraries, and not even libraries
containing a _GLOBAL_OFFSET_TABLE_ . I have tried configuring gcc with
--without-pic but it doesn't help, and I have tried setting CFLAGS='-fPIC
-msingle-pic-base' but that doesn't change anyting either. The latest thing I
have tried is configuring gcc with --disable-shared, but then I get the
following error when installing the library:
arm-linux-uclibc-ar cru libstdc++_pic.a .libs/*.o ../libsupc++/*.o
arm-linux-uclibc-ar: .libs/*.o: No such file or directory
make[4]: *** [install-exec-local] Error 1
make[4]: Leaving directory
`/home/dha/work/buildroot/toolchain_build_arm/gcc-3.4.2-final/arm-linux-uclibc/libstdc++-v3/src'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory
`/home/dha/work/buildroot/toolchain_build_arm/gcc-3.4.2-final/arm-linux-uclibc/libstdc++-v3/src'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory
`/home/dha/work/buildroot/toolchain_build_arm/gcc-3.4.2-final/arm-linux-uclibc/libstdc++-v3'
make[1]: *** [install-target-libstdc++-v3] Error 2
make[1]: Leaving directory
`/home/dha/work/buildroot/toolchain_build_arm/gcc-3.4.2-final'
make: ***
[/home/dha/work/buildroot/toolchain_build_arm/gcc-3.4.2-final/.installed]
Error 2
Any help/suggestions are greatly appreciated\
/David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20050831/7fed350f/attachment.sig>
More information about the Libstdc++
mailing list