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
This commit is contained in:
Måns Rullgård 2006-07-12 00:33:22 +00:00
parent 3ab60c830a
commit 0607887f0d

7
configure vendored
View File

@ -231,10 +231,9 @@ check_cpp(){
check_ld(){ check_ld(){
log check_ld "$@" log check_ld "$@"
cat >$TMPC check_cc || return
log_file $TMPC log $cc $LDFLAGS "$@" -o $TMPE $TMPO $extralibs
log $cc $CFLAGS $LDFLAGS "$@" -o $TMPE $TMPC $extralibs $cc $LDFLAGS "$@" -o $TMPE $TMPO $extralibs >>$logfile 2>&1
$cc $CFLAGS $LDFLAGS "$@" -o $TMPE $TMPC $extralibs >>$logfile 2>&1
} }
check_cflags(){ check_cflags(){