Merge pull request #210 from inverse-inc/compiler_flags
Add -O2 compilation by default and -g debug infopull/211/head
commit
8225480029
|
@ -1,3 +1,6 @@
|
||||||
|
# Use GCC level 2 optimization by default
|
||||||
|
# Might be overridden below
|
||||||
|
ADDITIONAL_OBJCFLAGS=-O2
|
||||||
ifeq ($(test-uninitialized),yes)
|
ifeq ($(test-uninitialized),yes)
|
||||||
ifeq ($(debug),yes)
|
ifeq ($(debug),yes)
|
||||||
ADDITIONAL_OBJCFLAGS=-O0
|
ADDITIONAL_OBJCFLAGS=-O0
|
||||||
|
@ -5,3 +8,9 @@ else
|
||||||
ADDITIONAL_OBJCFLAGS=-Wuninitialized
|
ADDITIONAL_OBJCFLAGS=-Wuninitialized
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
# 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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue