From 3ecce3dbeb0ebef90325fa0239862e63028093f5 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sat, 15 Feb 2014 19:48:05 +0000 Subject: [PATCH] Don't use getcwd in non-copy builds. (cherry picked from commit f3a39032601fab2c704f03338e378592d3b4e262) --- util/mk1mf.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 :-( -- 2.25.1