diff --git a/configure b/configure
index 918705ad70521199da6e71daac982a8158d6cec8..2d8447be3323539216db953f8480b8bbf9c76644 100755
--- a/configure
+++ b/configure
@@ -267,7 +267,7 @@ check_lib(){
 }
 
 check_exec(){
-    check_ld "$@" && { test -n "$cross_prefix" || $TMPE; }
+    check_ld "$@" && { test -n "$cross_prefix" || $TMPE 2>&1 >>$logfile; }
 }
 
 require(){