]> code.ossystems Code Review - openembedded-core.git/commitdiff
nss: Add nativesdk to BBCLASSEXTEND and bugfix
authorDavid Nyström <david.c.nystrom@gmail.com>
Fri, 31 Jan 2014 09:30:03 +0000 (10:30 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 2 Feb 2014 22:34:33 +0000 (22:34 +0000)
Since shsignlibs is used
from the nss postinstall hook. It should be included in
nativesdk to make offline rootfs construction possible.

Signed-off-by: David Nyström <david.nystrom@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/nss/nss.inc

index 9a2197625baccd5d87d945cf146d12fa474bcff9..a6aeed8b1abd0f9c19fae8987b3341a5607bca1a 100644 (file)
@@ -37,6 +37,10 @@ do_compile_prepend_class-native() {
     export NSPR_LIB_DIR=${STAGING_LIBDIR_NATIVE}
 }
 
+do_compile_prepend_class-nativesdk() {
+    export LDFLAGS=""
+}
+
 do_compile() {
     export CROSS_COMPILE=1
     export NATIVE_CC="gcc"
@@ -73,6 +77,11 @@ do_compile() {
         OS_TEST=${OS_TEST} \
 }
 
+
+do_install_prepend_class-nativesdk() {
+    export LDFLAGS=""
+}
+
 do_install() {
     export CROSS_COMPILE=1
     export NATIVE_CC="gcc"
@@ -193,4 +202,4 @@ FILES_${PN}-dbg = "\
     ${libdir}/.debug/* \
     "
 
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"