Don't use getcwd in non-copy builds.
authorDr. Stephen Henson <steve@openssl.org>
Sat, 15 Feb 2014 19:48:05 +0000 (19:48 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 15 Feb 2014 20:16:54 +0000 (20:16 +0000)
util/mk1mf.pl

index 94691df..90ae84b 100755 (executable)
@@ -192,7 +192,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 :-(