summaryrefslogtreecommitdiffstats
path: root/meta
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-08 10:53:14 +0100
commit74e7f68a7b46eb8700b415ab3a24092e295b001e (patch)
tree6115f07259e1e10570d9470e1ef41467463f977c /meta
parent60cea212bc504c28091cf470456abdcc862bdbb5 (diff)
downloadpoky-74e7f68a7b46eb8700b415ab3a24092e295b001e.tar.gz
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 rev: 0ec01bbd845b61798366441b2c7e5b8738db6b32) Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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() {
74 export USE_64=1 74 export USE_64=1
75 fi 75 fi
76 76
77 make -C ./nss CCC="${CXX}" \ 77 # We can modify CC in the environment, but if we set it via an
78 OS_TEST=${OS_TEST} \ 78 # argument to make, nsinstall, a host program, will also build with it!
79 #
80 export CC="${CC} -g"
81 make -C ./nss CCC="${CXX} -g" \
82 OS_TEST=${OS_TEST}
79} 83}
80 84
81 85
@@ -204,9 +208,6 @@ FILES_${PN}-dev = "\
204 ${libdir}/pkgconfig/* \ 208 ${libdir}/pkgconfig/* \
205 ${includedir}/* \ 209 ${includedir}/* \
206 " 210 "
207FILES_${PN}-dbg = "\ 211# FILES_${PN}-dbg is populated automatically
208 ${bindir}/.debug/* \
209 ${libdir}/.debug/* \
210 "
211 212
212BBCLASSEXTEND = "native nativesdk" 213BBCLASSEXTEND = "native nativesdk"