Browse code

split compile and link in check_ld based on patch by Graham Booker <ffmpeglist at cod3r com>

Originally committed as revision 5722 to svn://svn.ffmpeg.org/ffmpeg/trunk

Måns Rullgård authored on 2006/07/12 09:33:22
Showing 1 changed files
... ...
@@ -231,10 +231,9 @@ check_cpp(){
231 231
 
232 232
 check_ld(){
233 233
     log check_ld "$@"
234
-    cat >$TMPC
235
-    log_file $TMPC
236
-    log $cc $CFLAGS $LDFLAGS "$@" -o $TMPE $TMPC $extralibs
237
-    $cc $CFLAGS $LDFLAGS "$@" -o $TMPE $TMPC $extralibs >>$logfile 2>&1
234
+    check_cc || return
235
+    log $cc $LDFLAGS "$@" -o $TMPE $TMPO $extralibs
236
+    $cc $LDFLAGS "$@" -o $TMPE $TMPO $extralibs >>$logfile 2>&1
238 237
 }
239 238
 
240 239
 check_cflags(){