2016-06-02 17:37:19 +02:00
|
|
|
# Use GCC level 2 optimization by default
|
|
|
|
# Might be overridden below
|
|
|
|
ADDITIONAL_OBJCFLAGS=-O2
|
2009-10-01 16:40:10 +02:00
|
|
|
ifeq ($(test-uninitialized),yes)
|
2009-09-23 19:21:02 +02:00
|
|
|
ifeq ($(debug),yes)
|
2009-11-04 17:22:01 +01:00
|
|
|
ADDITIONAL_OBJCFLAGS=-O0
|
2009-09-23 19:21:02 +02:00
|
|
|
else
|
|
|
|
ADDITIONAL_OBJCFLAGS=-Wuninitialized
|
|
|
|
endif
|
2009-10-01 16:37:35 +02:00
|
|
|
endif
|
2016-06-02 17:37:19 +02:00
|
|
|
# Ensure we store in the ELF files minimal debugging
|
|
|
|
# information plus the compiler flags used; that can
|
|
|
|
# be afterwards read with:
|
|
|
|
# readelf -p .GCC.command.line /path/to/elf_file
|
|
|
|
ADDITIONAL_OBJCFLAGS += -g -frecord-gcc-switches
|
|
|
|
|