------- Comment #2 from jason dot vas dot dias at gmail dot com 2007-11-28 05:23 ------- OK, I understand this was not the designed use of "--with-sysroot", but there appears to be no other way to get a gcc build that compiles and links against a non-root directory hierarchy BY DEFAULT .
Consider non-root users who cannot chroot and need to test software against a new gcc+glibc combination on a particular machine. This involves producing a kind of cross-compiler, where only the glibc instance (and its /include directory) has changed. Perhaps this should be an enhancement request rather than a bug , I think there really ought to be some way of configuring a gcc build that prepends a given path to ALL its default search dirs, including the default dynamic linker. The attached patch serves this purpose well for me . -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34257