Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.development.apps > #582
| From | Tauno Voipio <tauno.voipio@notused.fi.invalid> |
|---|---|
| Newsgroups | comp.os.linux.development.apps |
| Subject | Re: environment variables in ld scripts |
| Date | 2013-04-23 14:50 +0300 |
| Organization | A noiseless patient Spider |
| Message-ID | <kl5sd7$gjm$1@dont-email.me> (permalink) |
| References | <2f2f7f01-d728-49bd-af16-65559cd27bf5@googlegroups.com> |
On 23.4.13 3:31 , 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? This seems more as the shell script to start ld (or maybe even gcc), than the ld script. Please check. -- Tauno Voipio
Back to comp.os.linux.development.apps | Previous | Next — Previous in thread | Next 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