Makefile: add debug option
This commit is contained in:
parent
d9b03fc5e6
commit
5a50ce1cef
7
Makefile
7
Makefile
@ -71,6 +71,13 @@ LIBRARIES := $(LIBRARIES:so=a)
|
||||
LDFLAGS += -static
|
||||
endif
|
||||
|
||||
# Debug build options
|
||||
ifdef DEBUG
|
||||
FFLAGS += -ggdb -O0 -Wall -Wunused-parameter
|
||||
# Tricks to detect uninitialised memory
|
||||
FFLAGS += -finit-integer=7777777 -finit-real=snan -ffpe-trap=invalid
|
||||
endif
|
||||
|
||||
##
|
||||
## Targets
|
||||
##
|
||||
|
Loading…
Reference in New Issue
Block a user