Mail Archives: djgpp/1995/04/20/11:00:58
> Isn't putting it into [gcc] section, like the supplied DJGPP.ENV does,
> enough? For one, it works for me (and just about everybody else).
> Second, is it ld.exe that needs to know about LIBRARY_PATH or gcc?
> Third, ld is usually a son of gcc, so gcc should pass its environment
> to ld, right?
gcc usually invokes ld with the -L options set based on gcc's
parameters and the LIBRARY_PATH variable, so ld doesn't need to know
LIBRARY_PATH. I don't know if I can guarantee that ld always gets
gcc's environment, either.
If you invoke ld manually, the [gcc] section doesn't have any effect
on ld's environment.
- Raw text -