Jim Wilson wrote:
Martin Reinecke wrote:
i.e. the "gcc" binary ends up as "xgcc" in a subdirectory called "gcc".
The gcc makefile install rule just does
rm -f $destdir/bin/gcc
install xgcc $destdir/bin/gcc
If destdir/bin/gcc is non-existant, or a plain file, then this works as
expected. If destdir/bin/gcc is a directory, then this will cause the
result you saw, as xgcc will be copied into the directory.
The question is then: Who created the directory?
That I probably can't figure out without makefile logs. It is also
possible that the directory was there before you started the install. In
this case, you might want to do a rm -rf $destdir to get a clean install.
This is what I always do directly before installing. I'll investigate some
more; if I don't find what's going wrong I'll post the output of
"make install", OK?
Thanks,
Martin