diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2014-02-15 19:48:05 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-02-15 20:17:59 +0000 |
commit | 3ecce3dbeb0ebef90325fa0239862e63028093f5 (patch) | |
tree | 07ed75a460ab72ee81b6bca6669d969dfd20b819 /util/mk1mf.pl | |
parent | 71eca86c304806c8f6e825705c40f0a2a417cb19 (diff) |
Don't use getcwd in non-copy builds.
(cherry picked from commit f3a39032601fab2c704f03338e378592d3b4e262)
Diffstat (limited to 'util/mk1mf.pl')
-rwxr-xr-x | util/mk1mf.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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 :-( |