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 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


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