From 1221df7bc63d755ddd4a88f6ad4e3fa69f27ae20 Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Thu, 1 Jan 2015 12:16:43 +0200 Subject: [PATCH] glibc: add debug symbols when BR2_ENABLE_DEBUG Signed-off-by: Baruch Siach Signed-off-by: Thomas Petazzoni --- package/glibc/glibc.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/glibc/glibc.mk b/package/glibc/glibc.mk index 65f4ed3b0d..0a37bb361a 100644 --- a/package/glibc/glibc.mk +++ b/package/glibc/glibc.mk @@ -47,6 +47,10 @@ else ifeq ($(BR2_MIPS_OABI32),y) GLIBC_EXTRA_CFLAGS += -mabi=32 endif +ifeq ($(BR2_ENABLE_DEBUG),y) +GLIBC_EXTRA_CFLAGS += -g +endif + # The stubs.h header is not installed by install-headers, but is # needed for the gcc build. An empty stubs.h will work, as explained # in http://gcc.gnu.org/ml/gcc/2002-01/msg00900.html. The same trick -- 2.30.2