public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc -with-sysroot
@ 2003-11-13  8:17 Chris Croswhite
  0 siblings, 0 replies; only message in thread
From: Chris Croswhite @ 2003-11-13  8:17 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-11-13  8:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-13  8:17 gcc -with-sysroot Chris Croswhite

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).