gcc and search path

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

 



Hello.

I need some help with gcc and search paths.  I have linux with a newer
glibc (2.3.2) and my app needs to be compiled with an older glibc
(2.2.4).  So I have configured gcc as:
../configure --enable-languages=c,c++ --disable-multilibs --disable-nls
--sysroot=/opt/RH72-BUILD-PKGS/GLIBC-2.2.4-IMAGE
--prefix=/opt/RH72-BUILD-PKGS/gcc323

However, when I do "gcc -print-search-dirs" I get this at the very end
of the search path:
.../lib/i686-pc-linux-gnu/3.2.3/:/usr/lib/

So my question is, how do I keep gcc tied to just the header files and
libraries I need it to compile to?

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