Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.development.apps > #584
| Newsgroups | comp.os.linux.development.apps |
|---|---|
| Date | 2013-04-23 12:56 -0700 |
| References | <2f2f7f01-d728-49bd-af16-65559cd27bf5@googlegroups.com> |
| Message-ID | <884cbf46-50b6-4151-a0bc-9104e62d2d20@googlegroups.com> (permalink) |
| Subject | Re: environment variables in ld scripts |
| From | Jay Braun <lyngwyst@gmail.com> |
On Monday, April 22, 2013 5:31:19 PM UTC-7, Jay Braun wrote: > I have inherited an application that makes extensive use of ld scripts. The former developer hard-coded many absolute directory paths into these scripts, e.g.: > > > > -L /home/harold/libs -( -lnwiss -lr -) > > @/home/harold/libs lib.ld > > > > I would like to use environment variables so that I can use, say /home/jay/ rather than /home/harold. So I'll define: > > > > export APP_LIBS=/home/jay/libs > > > > but neither of the following works: > > > > -L $APP_LIBS -( -lnwiss -lr -) > > @$APP_LIBS lib.ld > > > > Is there a special notation for employing environment variables in ld scripts? > > > > Thanks, > > Jay
Back to comp.os.linux.development.apps | Previous | Next — Previous in thread | Find similar
environment variables in ld scripts Jay Braun <lyngwyst@gmail.com> - 2013-04-22 17:31 -0700
Re: environment variables in ld scripts Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2013-04-23 14:50 +0300
Re: environment variables in ld scripts John Reiser <jreiserfl@comcast.net> - 2013-04-23 08:34 -0700
Re: environment variables in ld scripts Jay Braun <lyngwyst@gmail.com> - 2013-04-23 12:56 -0700
Re: environment variables in ld scripts Jay Braun <lyngwyst@gmail.com> - 2013-04-23 12:56 -0700
csiph-web