On Thu, 2019-10-10 at 15:38 -0300, Tulio Magno Quites Machado Filho wrote: > > > Let me first describe what I do now: > > > > configure/build BINUTILS with --prefix=${X} --with-sysroot=${X} > > configure/build an initial GCC (all-gcc all-target-libgcc) with > > --prefix=${X} --with-sysroot=${X} > > configure/build GLIBC, using that GCC, with --prefix=/usr, > > followed by install with DESTDIR=${X} > > Can you use --prefix=${X}?
I can. I would rather not, because when you don't have prefix set to /usr you get a different glibc build. For example, on aarch64 building with --prefix=/usr means that libraries are put in lib64 (or libilp32) instead of just lib. The glibc folks are always preaching against building with a prefix of anything other than /usr. > > Florian already explained why glibc has this test. > But the Advance Toolchain carries the following patch: > https://urldefense.proofpoint.com/v2/url?u=https-3A__sourceware.org_git_-3Fp-3Dglibc.git-3Ba-3Dcommitdiff-3Bh-3D9ca2648e2aa7094e022d5150281b2575f866259f&d=DwIBAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=Kj0CuWu6MgrNHos80CzrFt4fiXgwrFhMWDTO9Ue_lRU&m=zJmKExSapjGitHa0CdqSuR7k0QkL_7nNpzI76Y8XSLs&s=oE8dt9sjEr5MEtYG4c_pIgGtWYh2ZH3CG1jPypnGAdg&e= > Ah, I see. I was hoping that using --with-advance-toolchain would give me a way to build a toolchain without needing any local/non-standard patches. Steve Ellcey sell...@marvell.com