From 8f0989e7bfc7f56a40f1dede727999934a6dc6e0 Mon Sep 17 00:00:00 2001 From: Manoj Gupta Date: Mon, 28 Oct 2019 10:50:19 -0700 Subject: Always pass "-g" when building. Always build vboot_reference with "-g" irrespective of debug mode. Building with "-g" will allow much better stack traces and debug information when debugging. Portage will strip the debug binaries so the size of final files installed on DUT will stay unchanged. BUG=chromium:1017793 TEST="-g" is passed to builds. Change-Id: Id6a718bc31afe4a12243ddbb1c45d411ab9791f0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1884690 Tested-by: Manoj Gupta Reviewed-by: Julius Werner --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1a483800..e34dff5b 100644 --- a/Makefile +++ b/Makefile @@ -135,7 +135,7 @@ endif # permit a calling script or Makefile to set these. # # Flag ordering: arch, then -f, then -m, then -W -DEBUG_FLAGS := $(if ${DEBUG},-g -O0,-Os) +DEBUG_FLAGS := $(if ${DEBUG},-g -O0,-g -Os) WERROR := -Werror FIRMWARE_FLAGS := -nostdinc -ffreestanding -fno-builtin -fno-stack-protector COMMON_FLAGS := -pipe ${WERROR} -Wall -Wstrict-prototypes -Wtype-limits \ -- cgit v1.2.1