Patchwork [PATCHv2,4/5] nss: Add nativesdk to BBCLASSEXTEND and bugfix

login
register
mail settings
Submitter David Nyström
Date Jan. 31, 2014, 9:30 a.m.
Message ID <1391160604-23629-5-git-send-email-david.nystrom@enea.com>
Download mbox | patch
Permalink /patch/66119/
State New
Headers show

Comments

David Nyström - Jan. 31, 2014, 9:30 a.m.
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>
---
 meta/recipes-support/nss/nss.inc | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-support/nss/nss.inc b/meta/recipes-support/nss/nss.inc
index 9a21976..a6aeed8 100644
--- a/meta/recipes-support/nss/nss.inc
+++ b/meta/recipes-support/nss/nss.inc
@@ -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"