Article View: comp.sys.next.programmer
Article #1032Re: CFLAGS directives get hardwired?
From: & Garrett
Date: Mon, 14 Sep 1992 19:43
Date: Mon, 14 Sep 1992 19:43
28 lines
1755 bytes
1755 bytes
Thanks to everybody who responded, especially Jutta Degener who turned me
on to the LDPATH environment variable. This is a workably solution.
However, while pursuing this approach I also came across the following,
taken from the _SunOS_ man pages under the -L option for ld:
When building a program
in which one or more objects are loaded when -Bdynamic
is in effect, those directories specified by -L options
will be remembered for use at execution time. This
permits the construction of software that uses shared
objects as libraries not residing in the standard
locations and avoids requiring the specification of the
environment variable in order to execute such software.
Perfect! This is an even cleaner solution. But in the same place in the
_NeXT_ man pages all we get is:
Add dir to the list of directories in which libraries
are searched for. Directories specified with -L are
searched before the standard directories.
And indeed it doesn't work on the NeXT: the extra paths aren't remembered
at execute time.
Is there a way to accomplish this?
Thanks again,
Colin Garrett
NeXTMail: colin@delphi.bsd.uchicago.edu
Technical Details
Message-ID:
<1992Sep14.194328.9693@midway.uchicago.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!newsShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!news From: colin@agincourt.bsd.uchicago.edu (& Garrett) Subject: Re: CFLAGS directives get hardwired? Message-ID: <1992Sep14.194328.9693@midway.uchicago.edu> Sender: news@uchinews.uchicago.edu (News System) Organization: University of Chicago Computing Organizations Date: Mon, 14 Sep 1992 19:43:28 GMT Lines: 28