This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Compiling libstdc++ lib without PIC
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: David Hallas Andersen <david at hallas dot nu>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Thu, 1 Sep 2005 12:29:49 -0500
- Subject: Re: Compiling libstdc++ lib without PIC
- References: <200508311438.25060.david@hallas.nu>
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