Revision 684b28e0 configure

View differences:

configure
190 190
  echo "  --nm=NM                  use nm tool"
191 191
  echo "  --as=AS                  use assembler AS [$as_default]"
192 192
  echo "  --cc=CC                  use C compiler CC [$cc_default]"
193
  echo "  --ld=LD                  use linker LD"
193 194
  echo "  --host-cc=HOSTCC         use host C compiler HOSTCC"
194 195
  echo "  --host-cflags=HCFLAGS    use HCFLAGS when compiling for host"
195 196
  echo "  --host-ldflags=HLDFLAGS  use HLDFLAGS when linking for host"
......
579 580
    for f; do
580 581
        test "${f}" = "${f#-l}" && flags="$flags $f" || libs="$libs $f"
581 582
    done
582
    check_cmd $cc $LDFLAGS $flags -o $TMPE $TMPO $extralibs $libs
583
    check_cmd $ld $LDFLAGS $flags -o $TMPE $TMPO $extralibs $libs
583 584
}
584 585

  
585 586
check_cppflags(){
......
1000 1001
    host_ldflags
1001 1002
    host_libs
1002 1003
    host_os
1004
    ld
1003 1005
    logfile
1004 1006
    nm
1005 1007
    source_path
......
1485 1487

  
1486 1488
test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc"
1487 1489

  
1488
set_default as
1490
: ${ld_default:=$cc}
1491
set_default as ld
1489 1492

  
1490 1493
if test -n "$sysroot"; then
1491 1494
    case "$cc_type" in
......
2476 2479
echo "BUILD_ROOT=\"$PWD\"" >> config.mak
2477 2480
echo "CC=$cc" >> config.mak
2478 2481
echo "AS=$as" >> config.mak
2482
echo "LD=$ld" >> config.mak
2479 2483
echo "YASM=$yasmexe" >> config.mak
2480 2484
echo "AR=$ar" >> config.mak
2481 2485
echo "RANLIB=$ranlib" >> config.mak

Also available in: Unified diff