Don't use getcwd in non-copy builds.

(cherry picked from commit f3a3903260)
This commit is contained in:
Dr. Stephen Henson 2014-02-15 19:48:05 +00:00
parent 71eca86c30
commit 3ecce3dbeb

View File

@ -169,7 +169,7 @@ $mkdir="-mkdir" unless defined $mkdir;
$ranlib="echo ranlib";
$cc=(defined($VARS{'CC'}))?$VARS{'CC'}:'cc';
$src_dir=(defined($VARS{'SRC'}))?$VARS{'SRC'}:getcwd();
$src_dir=(defined($VARS{'SRC'}))?$VARS{'SRC'}: $platform eq 'copy' ? getcwd() : '.';
$bin_dir=(defined($VARS{'BIN'}))?$VARS{'BIN'}:'';
# $bin_dir.=$o causes a core dump on my sparc :-(