This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 3.2 PATCH: Avoid hardcoded uses of pwd
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: 14 May 2002 23:42:38 -0300
- Subject: Re: 3.2 PATCH: Avoid hardcoded uses of pwd
- Organization: GCC Team, Red Hat
- References: <6450000.1021426987@warlock.codesourcery.com>
On May 14, 2002, Mark Mitchell <mark@codesourcery.com> wrote:
> I don't understand. Why couldn't libtool use the same idea?
> The point is that all of the Makefile rules should be able to use $PWDCMD,
Because libtool is a stand-alone shell script, not something that is
necessarily part of a Makefile rule.
I prefer ${PWDCMD-pwd} in shell scripts. Having Makefile
substitutions would just require the user to set PWDCMD earlier,
requiring reconfiguration in case s/he didn't realize earlier that it
was necessary.
I could go with `PWDCMD = $${PWDCMD-pwd}' in Makefiles, though.
--
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