From: Dr. Stephen Henson Date: Sat, 15 Feb 2014 19:48:05 +0000 (+0000) Subject: Don't use getcwd in non-copy builds. X-Git-Tag: OpenSSL_1_0_2-beta1~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ecce3dbeb0ebef90325fa0239862e63028093f5;p=openssl Don't use getcwd in non-copy builds. (cherry picked from commit f3a39032601fab2c704f03338e378592d3b4e262) --- diff --git a/util/mk1mf.pl b/util/mk1mf.pl index 72ae0fddae..cbf845ae79 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -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 :-(