From 08b10e93c4c128542eae1a5a55e5020a891ca367 Mon Sep 17 00:00:00 2001 From: Joe Slater Date: Thu, 2 Apr 2015 11:41:54 -0700 Subject: nss: generate debug info Because the build of nss seems to ignore CFLAGS, we never have put source code in the -dbg package. We do not address the CFLAGS issue, but we do add -g to the definition of CC so that we will generate debug info. We also let package.bbclass populate the -dbg package instead of forcing the contents locally. (From OE-Core master rev: 0ec01bbd845b61798366441b2c7e5b8738db6b32) (From OE-Core rev: 24a55a1e9658fdfd7b314ce1d9f40e0374990b7a) Signed-off-by: Joe Slater Signed-off-by: Richard Purdie --- meta/recipes-support/nss/nss.inc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'meta/recipes-support') diff --git a/meta/recipes-support/nss/nss.inc b/meta/recipes-support/nss/nss.inc index 4be3557..4082930 100644 --- a/meta/recipes-support/nss/nss.inc +++ b/meta/recipes-support/nss/nss.inc @@ -74,8 +74,12 @@ do_compile() { export USE_64=1 fi - make -C ./nss CCC="${CXX}" \ - OS_TEST=${OS_TEST} \ + # We can modify CC in the environment, but if we set it via an + # argument to make, nsinstall, a host program, will also build with it! + # + export CC="${CC} -g" + make -C ./nss CCC="${CXX} -g" \ + OS_TEST=${OS_TEST} } @@ -204,9 +208,6 @@ FILES_${PN}-dev = "\ ${libdir}/pkgconfig/* \ ${includedir}/* \ " -FILES_${PN}-dbg = "\ - ${bindir}/.debug/* \ - ${libdir}/.debug/* \ - " +# FILES_${PN}-dbg is populated automatically BBCLASSEXTEND = "native nativesdk" -- cgit v1.1