This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: I would like to build a gcc that don's search /lib and /usr/lib when compiling others.
- From: Ian Lance Taylor <iant at google dot com>
- To: duanxun at yahoo dot com dot cn
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 24 Mar 2009 23:34:47 -0700
- Subject: Re: I would like to build a gcc that don's search /lib and /usr/lib when compiling others.
- References: <875521.50591.qm@web15307.mail.cnb.yahoo.com>
duanxun <duanxun@yahoo.com.cn> writes:
> I tried to using --target=i686-pc-linux-gnu --host=i586-pc-linux-gnu
Don't use --host without also using --build. I didn't spell it out, but
I recommended using either --target, or specifying all of --host,
--target, and --build. Using --host without --build gets you into
trouble, because autoconf decides that you are doing a Canadian Cross.
Ian
> --- 09å3æ25æïåä, Ian Lance Taylor <iant@google.com> åéï
>
>> åää: Ian Lance Taylor <iant@google.com>
>> äé: Re: I would like to build a gcc that don's search /lib and /usr/lib when compiling others.
>> æää: duanxun@yahoo.com.cn
>> æé: gcc-help@gcc.gnu.org
>> ææ: 2009å3æ25æ,åä,äå1:18
>> duanxun <duanxun@yahoo.com.cn>
>> writes:
>>
>> > When passing --target option: i686-pc-linux-gnu, this
>> macro will not be defined, Because my pc is the same.
>>
>> So, pass something else, e.g., --target=i386-pc-linux-gnu
>> . Or use
>> explicit --build, --host and --target options, and make
>> --build and
>> --host the same but --target different.
>>
>> Ian
>>
>
>
> ___________________________________________________________
> åçèåçäåïéçèååæäçï
> http://card.mail.cn.yahoo.com/