From a7a2de9b80be972b09b2aa083554ec14be8dd87d Mon Sep 17 00:00:00 2001 From: Erik Schmauss Date: Mon, 12 Aug 2019 11:28:50 -0700 Subject: [PATCH] Makefile: add debug flag Debug flag is set for CFLAGS and LDFLAGS if make is invoked with the DEBUG flag set to TRUE (make DEBUG=TRUE). Signed-off-by: Erik Schmauss --- generate/unix/Makefile.config | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/generate/unix/Makefile.config b/generate/unix/Makefile.config index 754bd14b3..c28e8a9b1 100644 --- a/generate/unix/Makefile.config +++ b/generate/unix/Makefile.config @@ -147,6 +147,14 @@ ACPICA_HEADERS = \ # OPT_CFLAGS ?= $(CWARNINGFLAGS) +# +# Debug flags +# +ifeq ($(DEBUG),TRUE) +CFLAGS +=-g +LDFLAGS +=-g +endif + # # Common compiler flags # The _GNU_SOURCE symbol is required for many hosts.