This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc -with-sysroot
- From: Chris Croswhite <csc at cadence dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 13 Nov 2003 08:15:38 +0000
- Subject: gcc -with-sysroot
- Organization: RC - Cadence Design Systems
- Reply-to: csc at cadence dot com
Okay, so I am really stuck here with configuring gcc to use a particular
glibc. I have tried to use "-with-sysroot=/blah", but still libstdc++
ends up with symbols for glibc-2.3.2 (I am targeting glibc-2.2.4) which
is wrong for my needs. I have even now tried the "--with-headers=/blah
--with-libs=/blah" and removing he check for cross compilation, but of
course this blows up (yeah, I know, you can not do this). However, it
seems to me that this is what I would like, a self contained gcc that
links with the sysroot which has the correct glibc (2.2.4).
I nm'ed the resulting libstdc++ file created once built and found
several symbols for "@GLIBC_2.3".
Here is the first config:
--enable-languages=c,c++ --disable-nls --disable-multilibs
--prefix=/opt/RH72-BUILD-PKGS/gcc-323-t5
--with-sysroot=/opt/RH72-BUILD-PKGS/GLIBC-2.2.4-IMAGE
Here is the second config:
--enable-languages=c,c++ --disable-nls --disable-multilibs
--prefix=/opt/RH72-BUILD-PKGS/gcc-323-t5
--with-sysroot=/opt/RH72-BUILD-PKGS/GLIBC-2.2.4-IMAGE
--with-headers=/opt/RH72-BUILD-PKGS/GLIBC-2.2.4-IMAGE/include
--with-libs=/opt/RH72-BUILD-PKGS/GLIBC-2.2.4-IMAGE/lib
Any help from the gcc experts, I would really appreciate!
TIA,
Chris