Compiling libstdc++ lib without PIC
Benjamin Kosnik
bkoz@redhat.com
Thu Sep 1 17:30:00 GMT 2005
I believe CodeSourcery has this toolchain already compiled for you.
See:
http://www.codesourcery.com/gnu_toolchains/arm/
Also, they host mailing lists for arm/GNU tools that might be more useful than this one.
> 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:
--disable-shared should work.
> 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'
This may indicate that the build failed. Instead of an install, what
does "make all" do? You should have object files here.
-benjamin
More information about the Libstdc++
mailing list