Revision 1156c669

b/configure
1415 1415
# After here, no more $cc or $ld runs
1416 1416

  
1417 1417
# default flags for all hosts
1418
CFLAGS="$CFLAGS -g -fno-strict-aliasing"
1418
CFLAGS="-g -fno-strict-aliasing $CFLAGS"
1419 1419
if test "$debug" = "no" ; then
1420
  CFLAGS="$CFLAGS -O2"
1420
  CFLAGS="-O2 $CFLAGS"
1421 1421
fi
1422
CFLAGS="$CFLAGS -Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls"
1423
LDFLAGS="$LDFLAGS -g"
1422
CFLAGS="-Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls $CFLAGS"
1423
LDFLAGS="-g $LDFLAGS"
1424 1424

  
1425 1425
# Consult white-list to determine whether to enable werror
1426 1426
# by default.  Only enable by default for git builds
......
1435 1435
fi
1436 1436

  
1437 1437
if test "$werror" = "yes" ; then
1438
    CFLAGS="$CFLAGS -Werror"
1438
    CFLAGS="-Werror $CFLAGS"
1439 1439
fi
1440 1440

  
1441 1441
if test "$solaris" = "no" ; then
1442 1442
    if $ld --version 2>/dev/null | grep "GNU ld" >/dev/null 2>/dev/null ; then
1443
        LDFLAGS="$LDFLAGS -Wl,--warn-common"
1443
        LDFLAGS="-Wl,--warn-common $LDFLAGS"
1444 1444
    fi
1445 1445
fi
1446 1446

  
......
1598 1598
fi
1599 1599
if test "$static" = "yes" ; then
1600 1600
  echo "CONFIG_STATIC=y" >> $config_host_mak
1601
  LDFLAGS="$LDFLAGS -static"
1601
  LDFLAGS="-static $LDFLAGS"
1602 1602
fi
1603 1603
if test $profiler = "yes" ; then
1604 1604
  echo "CONFIG_PROFILER=y" >> $config_host_mak

Also available in: Unified diff