On Wed, Apr 16, 2008 at 05:21:55PM +0200, Denys Vlasenko wrote: > Maybe gcc can use paths relative to executable's location? > readlink("/proc/self/exe") and all that. > It will make gcc installation movable without rebuilding.
It already does. That's exactly what the code causing you a problem is for. So if you don't try to work around the lack of a feature which is in fact present, everything will just work :-) It's configured to live in /usr/bin. So from there it searches ../app*/lib/gcc/wherever to find cc1. When it discovers that you ran it from /usr/app*/bin instead (by following the symlink to the real binary), it searches /usr/app*/bin/../app*/lib/gcc/wherever. But cc1's not there. -- Daniel Jacobowitz CodeSourcery