summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Slater <jslater@windriver.com>2015-04-02 11:41:54 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-06 20:36:04 +0100
commit0ec01bbd845b61798366441b2c7e5b8738db6b32 (patch)
tree78e16861e9ad156904cbc69041447461627082af
parent34b82b8452aa721146f95321cfd1a1fee3f0d6c8 (diff)
downloadopenembedded-core-0ec01bbd845b61798366441b2c7e5b8738db6b32.tar.gz
openembedded-core-0ec01bbd845b61798366441b2c7e5b8738db6b32.tar.bz2
openembedded-core-0ec01bbd845b61798366441b2c7e5b8738db6b32.zip
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. Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-support/nss/nss.inc13
1 files changed, 7 insertions, 6 deletions
diff --git a/meta/recipes-support/nss/nss.inc b/meta/recipes-support/nss/nss.inc
index 4be35576a4..4082930ace 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"