mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-06 20:37:14 +00:00
Add -O2 compilation by default and -g debug info
Also store GCC command-line switches in the binaries for easier debugging.
This commit is contained in:
1 parent
dd2f6f8cb1
commit
0721b92315
1 file changed
+9
@@ -1,3 +1,6 @@
|
||||
# Use GCC level 2 optimization by default
|
||||
# Might be overridden below
|
||||
ADDITIONAL_OBJCFLAGS=-O2
|
||||
ifeq ($(test-uninitialized),yes)
|
||||
ifeq ($(debug),yes)
|
||||
ADDITIONAL_OBJCFLAGS=-O0
|
||||
@@ -5,3 +8,9 @@ else
|
||||
ADDITIONAL_OBJCFLAGS=-Wuninitialized
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user