www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/04/19/05:21:34

Date: Wed, 19 Apr 1995 09:50:27 +0300
From: eliz AT is DOT elta DOT co DOT il. (Eli Zaretskii)
To: berend AT beard DOT nest DOT nl
Subject: Re: How to change ld's search path?
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

> How can I change the path ld uses to search it files?

Gcc looks at the environment variable LIBRARY_PATH and instructs
ld to search the directories mentioned there before the default
list which you saw in your case.  The file DJGPP.ENV (which should
be in your main DJGPP directory) includes a section named [gcc]
which sets this variable to point to the lib/ subdirectory.  If
your installation preserved the directory structure as the various
.zip files carry with them (did you remember to give that -d switch
to PKUNZIP?), then be sure to have this single line in your AUTOEXEC.BAT:

	set DJGPP=c:\mygpp-path\djgpp.env

(change this to the actual path of your DJGPP installation), and you
should see ld looking in that lib/ subdirectory.  If your directory
tree is different, you can tell this to gcc by defining a *real*
environment variable LIBRARY_PATH which points to the directory you
have your lib*.a files.

If all of the above seems to be done and you still have the problem,
then maybe you are running out of available environment space.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019