I would like to build a gcc that don's search /lib and /usr/lib when compiling others.

Ian Lance Taylor iant@google.com
Tue Mar 24 14:19:00 GMT 2009


duanxun <duanxun@yahoo.com.cn> writes:

> I try to build a new gcc that do not search the library path: /usr/lib and /lib 
> That means I when I run: gcc --print-search-dirs. 
> The libraries show no path. 
>
> But I don’t know how to config it. 
> Version: 4.3.3 
>
> Could you please help me? 

You could try building a cross compiler by passing a --target option to
configure.

Ian



More information about the Gcc-help mailing list