summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2014-01-26 01:06:40 -0300
committerBrian Fraser <fraserbn@gmail.com>2014-01-26 14:44:25 -0300
commit8d6f7939bfc611dedd9b5c694563ca08c063d5fc (patch)
tree9cd51273121978ad9e460ecce94741b5790621de /Configure
parentb962ec999041cd2b045bb6ff8162c66c647dc2d1 (diff)
downloadperl-8d6f7939bfc611dedd9b5c694563ca08c063d5fc.tar.gz
Configure: Fix the fflush(NULL) test in cross builds
Second attempt at this. This is less portable than the previous version, since it assumes that the target system will have a cat, but unlike the previous version this now actually works.
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure6
1 files changed, 4 insertions, 2 deletions
diff --git a/Configure b/Configure
index a6fa4285b6..29a6152cac 100755
--- a/Configure
+++ b/Configure
@@ -19712,7 +19712,8 @@ EOCP
# Copy the .c file to the remote host ($to is an ssh-alike if targethost is set)
if $test "X$targethost" != X; then
$to tryp.c
- $run ./tryp \< tryp.c 2>/dev/null > tryp.out
+ $to tryp
+ $run "cat tryp.c | ./tryp" 2>/dev/null > tryp.out
else
$cat tryp.c | $run ./tryp 2>/dev/null > tryp.out
fi
@@ -19781,7 +19782,8 @@ EOCP
$rm -f tryp.out
if $test "X$targethost" != X; then
$to tryp.c
- $run ./tryp \< tryp.c 2>/dev/null > tryp.out
+ $to tryp
+ $run "cat tryp.c | ./tryp" 2>/dev/null > tryp.out
else
$cat tryp.c | $run ./tryp 2>/dev/null > tryp.out
fi