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