From: Brian Fraser Date: Fri, 1 Aug 2014 19:48:30 +0000 (+0200) Subject: On Android, set TMPDIR before calling configure X-Git-Tag: 0.76~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2Ffcgi2.git;a=commitdiff_plain;h=a4c097db91f7152e3b8b9499c410bc183a254bde On Android, set TMPDIR before calling configure The full explanation for this is here: http://stackoverflow.com/questions/15283220/android-shell-eof In short, Android's sh has a bug in that writing cat <tmpdir returns. --- diff --git a/perl/Makefile.PL b/perl/Makefile.PL index f35c97e..fdf7076 100644 --- a/perl/Makefile.PL +++ b/perl/Makefile.PL @@ -139,6 +139,11 @@ if ($sys eq "win32") { print "Please read configure.readme for information on how to run it yourself\n"; $ENV{'CC'} = $Config{'cc'}; + if ( $^O eq 'android' && !$ENV{'TMPDIR'} ) { + # See http://stackoverflow.com/a/15417261 + require File::Spec; + $ENV{'TMPDIR'} = File::Spec->tmpdir(); + } system("$Config{sh} configure"); }