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


Mark Mitchell writes:

> Can we not simply set PWDCMD correctly on one place, and then invoke
> it as ${PWDCMD} -- without the "pwd" fallback?
> 
> If necessary, we could even have the top-level configure create a script
> that does the right thing, and then have the Makefiles invoke
> $objdir/pwd, or some such.

This could work as a GCC-only approach, but has the disadvantage that it
won't be able to be easily integrated into autoconf, automake, and
libtool.  I suppose allowing the user to set PWDCMD as reqired, but falling
back to the default pwd as a default is much more acceptable there.

	Rainer


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