From 5541f5e3812b610fc46c8eb35644f773391a610e Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Wed, 5 Oct 2011 16:51:16 +0200 Subject: [PATCH] bisect-runner.pl needs to inline $compile into the test for malloc.h Prior to bd9b35c97ad661cc Configure had the malloc.h test before the definition of $compile. With this, bisect-runner.pl can build all extensions back to perl-5.002. --- Porting/bisect-runner.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Porting/bisect-runner.pl b/Porting/bisect-runner.pl index e144b3d..40a5639 100755 --- a/Porting/bisect-runner.pl +++ b/Porting/bisect-runner.pl @@ -505,7 +505,9 @@ EOPATCH } if ($major < 10 && extract_from_file('Configure', qr/^set malloc\.h i_malloc$/)) { - # This is commit 01d07975f7ef0e7d, trimmed: + # This is commit 01d07975f7ef0e7d, trimmed, with $compile inlined as + # prior to bd9b35c97ad661cc Configure had the malloc.h test before the + # definition of $compile. apply_patch(<<'EOPATCH'); diff --git a/Configure b/Configure index 3d2e8b9..6ce7766 100755 @@ -525,7 +527,7 @@ index 3d2e8b9..6ce7766 100755 +int main () { return 0; } +EOCP +set try -+if eval $compile; then ++if $cc $optimize $ccflags $ldflags -o try $* try.c $libs > /dev/null 2>&1; then + echo " found." >&4 + val="$define" +else -- 2.7.4