I would like to build a gcc that don's search /lib and /usr/lib when compiling others.
duanxun
duanxun@yahoo.com.cn
Wed Mar 25 08:59:00 GMT 2009
Ian,
Thanks for your information.
Currently, gcc was built completely.
And I type ./i686-pc-linux-gnu-gcc -print-search-dirs, the libraries haven't include the system path. That is what I need.
But it seems there are lots of other issues.
such as can't found ld and stdlib.
I'm going to investigate these issues.
Thank you again.
--- 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日,周三,下午2:34
> 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/
>
___________________________________________________________
好玩贺卡等你发,邮箱贺卡全新上线!
http://card.mail.cn.yahoo.com/
More information about the Gcc-help
mailing list