This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/34257] --with-sysroot does not change default linux glibc dynamic-linker path
- From: "jason dot vas dot dias at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Nov 2007 05:23:55 -0000
- Subject: [Bug bootstrap/34257] --with-sysroot does not change default linux glibc dynamic-linker path
- References: <bug-34257-15444@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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