http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56802
Bug #: 56802
Summary: --with-build-sysroot does not affect library search
directories
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: other
AssignedTo: [email protected]
ReportedBy: [email protected]
I would like to to build gcc with a glibc other than the used by the build
system and compiler. The resulting compiler is installed to a host that has
the glibc I am building against and everything else (binutils) in the regular
/usr/.
I am configuring gcc with --enable-languages=c,c++ --disable-multilib
--with-build-sysroot=/tmp/sysrootd, with my target glibc copied to
/tmp/sysrootd.
Building works but linking the second stage fails, with ld not being able to
find crti.o.
I think with-build-sysroot should affect library search directories.