home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / programm / 6151 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.7 KB  |  39 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!news
  3. From: colin@agincourt.bsd.uchicago.edu (& Garrett)
  4. Subject: Re: CFLAGS directives get hardwired?
  5. Message-ID: <1992Sep14.194328.9693@midway.uchicago.edu>
  6. Sender: news@uchinews.uchicago.edu (News System)
  7. Organization: University of Chicago Computing Organizations
  8. Date: Mon, 14 Sep 1992 19:43:28 GMT
  9. Lines: 28
  10.  
  11. Thanks to everybody who responded, especially Jutta Degener who turned me  
  12. on to the LDPATH environment variable.  This is a workably solution.   
  13. However, while pursuing this approach I also came across the following,  
  14. taken from the _SunOS_ man pages under the -L option for ld:
  15.            When building a program
  16.                in which one or more objects are loaded when -Bdynamic
  17.                is in effect, those directories specified by -L options
  18.                will be remembered for use at execution time.  This
  19.                permits the construction of software that uses shared
  20.                objects as libraries not residing in the standard
  21.                locations and avoids requiring the specification of the
  22.                environment variable in order to execute such software.
  23.  
  24. Perfect!  This is an even cleaner solution.  But in the same place in the  
  25. _NeXT_ man pages all we get is:
  26.          Add dir to the list of directories in which libraries
  27.           are searched for.  Directories specified with -L are
  28.           searched before the standard directories.
  29.  
  30. And indeed it doesn't work on the NeXT: the extra paths aren't remembered  
  31. at execute time.
  32.  
  33. Is there a way to accomplish this?
  34.  
  35. Thanks again,
  36.  
  37. Colin Garrett
  38. NeXTMail: colin@delphi.bsd.uchicago.edu
  39.