Revision 5f9981c7

b/Makefile.target
73 73
PROGS=$(QEMU_PROG)
74 74

  
75 75
# We require -O2 to avoid the stack setup prologue in EXIT_TB
76
OP_CFLAGS := -Wall -O2 -g -fno-strict-aliasing
76
OP_CFLAGS := -Wall -Wundef -O2 -g -fno-strict-aliasing
77 77

  
78 78
# cc-option
79 79
# Usage: OP_CFLAGS+=$(call cc-option, -falign-functions=0, -malign-functions=0)
b/configure
346 346
done
347 347

  
348 348
# default flags for all hosts
349
CFLAGS="$CFLAGS -Wall -O2 -g -fno-strict-aliasing"
349
CFLAGS="$CFLAGS -Wall -Wundef -O2 -g -fno-strict-aliasing"
350 350
LDFLAGS="$LDFLAGS -g"
351 351
if test "$werror" = "yes" ; then
352 352
CFLAGS="$CFLAGS -Werror"

Also available in: Unified diff