diff --git a/configure b/configure index 50ea191b3a7084c06b6f815d2af21fc90e7bfc00..5a8f365335bb3ced54431278a99915d3986241a7 100755 --- a/configure +++ b/configure @@ -231,10 +231,9 @@ check_cpp(){ check_ld(){ log check_ld "$@" - cat >$TMPC - log_file $TMPC - log $cc $CFLAGS $LDFLAGS "$@" -o $TMPE $TMPC $extralibs - $cc $CFLAGS $LDFLAGS "$@" -o $TMPE $TMPC $extralibs >>$logfile 2>&1 + check_cc || return + log $cc $LDFLAGS "$@" -o $TMPE $TMPO $extralibs + $cc $LDFLAGS "$@" -o $TMPE $TMPO $extralibs >>$logfile 2>&1 } check_cflags(){