This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 3.2 PATCH: Avoid hardcoded uses of pwd


On May 15, 2002, Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> wrote:

> i.e. PWDCMD remains in the environment, but is set to the literal value
> from the Makefile ;-(

Argh!  Yes, that's right, most makes export Makefile variables in the
environment.

> I'm going for this variant instead:

> PWD = $${PWDCMD-pwd}

Excellent, thanks.  Bonus points for adding a comment explaining why
the macro can't be named PWDCMD :-)

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]