diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-support/nss/nss_3.21.bb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-support/nss/nss_3.21.bb b/meta/recipes-support/nss/nss_3.21.bb index 552fd6c77d..d2e24112de 100644 --- a/meta/recipes-support/nss/nss_3.21.bb +++ b/meta/recipes-support/nss/nss_3.21.bb | |||
@@ -55,6 +55,11 @@ do_compile_prepend_class-nativesdk() { | |||
55 | export LDFLAGS="" | 55 | export LDFLAGS="" |
56 | } | 56 | } |
57 | 57 | ||
58 | do_compile_prepend_class-native() { | ||
59 | # Need to set RPATH so that chrpath will do its job correctly | ||
60 | RPATH="-Wl,-rpath-link,${STAGING_LIBDIR_NATIVE} -Wl,-rpath-link,${STAGING_BASE_LIBDIR_NATIVE} -Wl,-rpath,${STAGING_LIBDIR_NATIVE} -Wl,-rpath,${STAGING_BASE_LIBDIR_NATIVE}" | ||
61 | } | ||
62 | |||
58 | do_compile() { | 63 | do_compile() { |
59 | export CROSS_COMPILE=1 | 64 | export CROSS_COMPILE=1 |
60 | export NATIVE_CC="gcc" | 65 | export NATIVE_CC="gcc" |
@@ -96,7 +101,8 @@ do_compile() { | |||
96 | # | 101 | # |
97 | export CC="${CC} -g" | 102 | export CC="${CC} -g" |
98 | make -C ./nss CCC="${CXX} -g" \ | 103 | make -C ./nss CCC="${CXX} -g" \ |
99 | OS_TEST=${OS_TEST} | 104 | OS_TEST=${OS_TEST} \ |
105 | RPATH="${RPATH}" | ||
100 | } | 106 | } |
101 | 107 | ||
102 | 108 | ||