Hi Ian, the source code I found from gcc/configure (line:13420) ----------------------------------------------- if test x$host != x$target then CROSS="-DCROSS_DIRECTORY_STRUCTURE" ...... fi ---------------------------------------------- When passing --target option: i686-pc-linux-gnu, this macro will not be defined, Because my pc is the same. By default: when we run gcc --print-search-dirs the last line like this: libraries:.......;/lib/;......;/usr/lib/ I would like to build a gcc that do not search the system paths like /lib/ and /usr/lib. Could you please show me the details of building such a gcc? Thanks, Xun Duan --- 09年3月24日,周二, Ian Lance Taylor <iant@xxxxxxxxxx> 写道: > 发件人: Ian Lance Taylor <iant@xxxxxxxxxx> > 主题: Re: I would like to build a gcc that don's search /lib and /usr/lib when compiling others. > 收件人: duanxun@xxxxxxxxxxxx > 抄送: gcc-help@xxxxxxxxxxx > 日期: 2009年3月24日,周二,下午10:19 > duanxun <duanxun@xxxxxxxxxxxx> > 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鈥檛 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 > ___________________________________________________________ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/