Date: Thu, 20 Apr 1995 07:47:57 -0400 From: dj (DJ Delorie) To: eliz AT is DOT elta DOT co DOT il Cc: berend AT beard DOT nest DOT nl, djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: How to change ld's search path? > 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.