Xi Ruoyao <xry111@xxxxxxxxxxx> 于2023年7月28日周五 20:17写道: > > On Fri, 2023-07-28 at 19:13 +0800, YunQiang Su via Gcc-help wrote: > > 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. > Ohh, It is the bug (or maybe feature) of MIPS code of gcc. Sorry for the noise. > Please be more specific, i. e. how did you configure GCC? And what is > the difference between your expectation and the actual behavior? > > -- > Xi Ruoyao <xry111@xxxxxxxxxxx> > School of Aerospace Science and Technology, Xidian University -- YunQiang Su