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: Allow genmultilib to be reentrant


On Mon, 16 Dec 2002 21:22:29 -0800 (PST), Geoffrey Keating <gkeating@apple.com> wrote:

> 2002-12-16  Geoffrey Keating  <geoffk@apple.com>
>
> 	* genmultilib: Create temporary files in unique subdirectory.

This breaks for me; I have CDPATH set, so "cd tmpmultilib.$$" prints out
the expanded path.  Perhaps this is a bash bug, but this patch fixes the
problem.  Applied to trunk.

2002-12-17  Jason Merrill  <jason@redhat.com>

	* genmultilib: Use 'cd ./foo'.

*** genmultilib.~1~	Tue Dec 17 01:23:19 2002
--- genmultilib	Tue Dec 17 02:04:07 2002
*************** enable_multilib=$8
*** 121,127 ****
  echo "static const char *const multilib_raw[] = {"
  
  mkdir tmpmultilib.$$ || exit 1
! cd tmpmultilib.$$ || exit 1
  
  # What we want to do is select all combinations of the sets in
  # options.  Each combination which includes a set of mutually
--- 121,128 ----
  echo "static const char *const multilib_raw[] = {"
  
  mkdir tmpmultilib.$$ || exit 1
! # Use cd ./foo to avoid CDPATH output.
! cd ./tmpmultilib.$$ || exit 1
  
  # What we want to do is select all combinations of the sets in
  # options.  Each combination which includes a set of mutually

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