From b68f2a4bba4ca8cf94aba5dc691c88b93901606a Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 3 Oct 2018 06:48:35 +0000 Subject: [PATCH] Use cd -P Setting PWD in the process does not let `cd` traverse symlinks in /bin/sh on macOS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index fb7c5c97d8..df1ef8cf2e 100644 --- a/configure.ac +++ b/configure.ac @@ -262,7 +262,7 @@ AS_CASE(["$build_os"], @%:@error ignore linker warnings @%:@endif SRC - CC_WRAPPER=`PWD=; cd "$srcdir/tool" && pwd`/darwin-cc + CC_WRAPPER=`cd -P "$srcdir/tool" && pwd`/darwin-cc CC="$CC_WRAPPER $CC" ]) ])