ali hagigat <hagigatali@xxxxxxxxx> writes: > I am using Linux Fedora 12, gcc 4.4.2. > > I watched the compiling process of a C program and the library search > path for free-standing and hosted compilation was the same: > > LIBRARY_PATH=/usr/lib/gcc/i686-redhat-linux/4.4.2/:/usr/lib/gcc/i686-redhat-linux/4.4.2/:/usr/lib/gcc/i686-redhat-linux/4.4.2/../../../:/lib/:/usr/lib/ > > Why gcc continues to consider the default library search path? Why not? It's true that you can't tell a native gcc to not search the default directories for libraries. However, since you can control the exact libraries which are linked in, I'm not sure why it matters. If you need to build a fully isolated gcc, configure it with a --with-sysroot option. Ian