Re: How to build cross toolchain with a rootfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



YunQiang Su via Gcc-help <gcc-help@xxxxxxxxxxx> writes:

> If I have a rootfs, which contains all necessary lib/headers in standard paths.
> For example it is an arm rootfs, it has
>     <sysroot>/usr/lib/  contains all libs
>     <sysroot>/usr/include contains all headers
>
> How can I build a cross gcc for it?
> I tried lots of build time options, such as
>      --with-sysroot
>      --with-build-sysroot
> But none of them work perfectly.
>
> Any suggestions?

It should be as simple as --with-sysroot=<sysroot> --target=..., plus
the usual customization options you want (see ./configure
--help[=recursive] for a full list of flags).

What error do you see?

See also https://gcc.gnu.org/install/

Have a lovely day!
-- 
Arsen Arsenović

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux