Revision 07dec06e configure

View differences:

configure
1510 1510

  
1511 1511
if   $cc --version 2>/dev/null | grep -qi gcc; then
1512 1512
    cc_type=gcc
1513
    CC_DEPFLAGS='-MMD'
1514
    AS_DEPFLAGS='-MMD'
1513 1515
elif $cc --version 2>/dev/null | grep -q Intel; then
1514 1516
    cc_type=icc
1517
    CC_DEPFLAGS='-MMD'
1518
    AS_DEPFLAGS='-MMD'
1515 1519
elif $cc -v 2>&1 | grep -q xlc; then
1516 1520
    cc_type=xlc
1517 1521
elif $cc -V 2>/dev/null | grep -q Compaq; then
......
1530 1534
        die "Error creating armcc configuration file."
1531 1535
    cc="$cc --arm_linux_config_file=$armcc_conf --translate_gcc"
1532 1536
    as_default="${cross_prefix}gcc"
1537
    CC_DEPFLAGS='-MMD'
1538
    AS_DEPFLAGS='-MMD'
1533 1539
elif $cc -version 2>/dev/null | grep -q TMS470; then
1534 1540
    cc_type=tms470
1535 1541
    cc="$cc --gcc --abi=eabi -eo=.o -mc -me"
1536 1542
    CC_O='-fr=$(@D)'
1537 1543
    as_default="${cross_prefix}gcc"
1538 1544
    ld_default="${cross_prefix}gcc"
1539
    dep_cc_default="${cross_prefix}gcc"
1540 1545
    TMPO=$(basename $TMPC .c).o
1541 1546
    append TMPFILES $TMPO
1542 1547
    add_cflags -D__gnuc_va_list=va_list -D__USER_LABEL_PREFIX__=
1543
    DEPFLAGS='$(CPPFLAGS) -MM'
1548
    CC_DEPFLAGS='-ppa -ppd=$(@:.o=.d)'
1549
    AS_DEPFLAGS='-MMD'
1544 1550
    filter_cflags=tms470_flags
1545 1551
    tms470_flags(){
1546 1552
        for flag; do
......
1574 1580
: ${ld_default:=$cc}
1575 1581
set_default as dep_cc ld
1576 1582

  
1583
test -n "$CC_DEPFLAGS" || CCDEP=$DEPEND_CMD
1584
test -n "$AS_DEPFLAGS" || ASDEP=$DEPEND_CMD
1585

  
1577 1586
add_cflags $extra_cflags
1578 1587
add_asflags $extra_cflags
1579 1588

  
......
2611 2620
echo "SLIBSUF=$SLIBSUF" >> config.mak
2612 2621
echo "EXESUF=$EXESUF" >> config.mak
2613 2622
echo "EXTRA_VERSION=$extra_version" >> config.mak
2614
echo "DEPEND_CMD=$DEPEND_CMD" >> config.mak
2615 2623
echo "DEPFLAGS=$DEPFLAGS" >> config.mak
2624
echo "CCDEP=$CCDEP" >> config.mak
2625
echo "ASDEP=$ASDEP" >> config.mak
2626
echo "CC_DEPFLAGS=$CC_DEPFLAGS" >> config.mak
2627
echo "AS_DEPFLAGS=$AS_DEPFLAGS" >> config.mak
2616 2628
echo "HOSTCC=$host_cc" >> config.mak
2617 2629
echo "HOSTCFLAGS=$host_cflags" >> config.mak
2618 2630
echo "HOSTEXESUF=$HOSTEXESUF" >> config.mak

Also available in: Unified diff