]> code.ossystems Code Review - openembedded-core.git/commitdiff
nss: generate debug info
authorJoe Slater <jslater@windriver.com>
Thu, 2 Apr 2015 18:41:54 +0000 (11:41 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 6 Apr 2015 19:36:04 +0000 (20:36 +0100)
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>
meta/recipes-support/nss/nss.inc

index 4be35576a49731ba6d4992b87fa7dcb54dd86b38..4082930acee20041edc592b93814a1762c8a20a5 100644 (file)
@@ -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"