gcc -with-sysroot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux