[klibc] Don't hardcode paths in klcc
H. Peter Anvin
hpa at zytor.com
Wed Jan 25 20:46:48 PST 2006
Martin Michlmayr wrote:
> Stop makeklcc.pl from hardcoding paths of cc, ld and strip in the klcc
> script it generates. Using hardcoded paths is generally a bad idea.
> First, the whole idea of $PATH is that you don't need to hardcode
> paths. Second, klcc is a Perl script but my hardcoding the paths
> you make it less portable.
In this case, though, it's probably required, since otherwise you could
end up with some very strange results when cross-compiling. I'm not
sure what the ideal answer is, but I think this is wrong.
klcc is a installation-specific, generated Perl script, so portability
is not an issue.
-hpa
More information about the klibc
mailing list