Created patch based on:

nss:no rpath for cross compiling
nss: fix support cross compiling

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Upstream-Status: Inappropriate [configuration]

diff -Nuar nss-3.32.orig/nss/cmd/platlibs.mk nss-3.32/nss/cmd/platlibs.mk
--- nss-3.32.orig/nss/cmd/platlibs.mk	2017-07-27 19:39:32.000000000 +0530
+++ nss-3.32/nss/cmd/platlibs.mk	2017-09-06 09:59:21.129462603 +0530
@@ -18,9 +18,9 @@
 
 ifeq ($(OS_ARCH), Linux)
 ifeq ($(USE_64), 1)
-EXTRA_SHARED_LIBS += -Wl,-rpath,'$$ORIGIN/../lib64:/opt/sun/private/lib64:$$ORIGIN/../lib'
+#EXTRA_SHARED_LIBS += -Wl,-rpath,'$$ORIGIN/../lib64:/opt/sun/private/lib64:$$ORIGIN/../lib'
 else
-EXTRA_SHARED_LIBS += -Wl,-rpath,'$$ORIGIN/../lib:/opt/sun/private/lib'
+#EXTRA_SHARED_LIBS += -Wl,-rpath,'$$ORIGIN/../lib:/opt/sun/private/lib'
 endif
 endif
 
diff -Nuar nss-3.32.orig/nss/lib/freebl/Makefile nss-3.32/nss/lib/freebl/Makefile
--- nss-3.32.orig/nss/lib/freebl/Makefile	2017-07-27 19:39:32.000000000 +0530
+++ nss-3.32/nss/lib/freebl/Makefile	2017-09-06 09:59:58.233461796 +0530
@@ -36,6 +36,12 @@
 	DEFINES += -DNSS_USE_64
 endif
 
+ifeq ($(OS_TEST),mips)
+ifndef USE_64
+	DEFINES += -DNS_PTR_LE_32
+endif
+endif
+
 ifdef USE_ABI32_FPU
 	DEFINES += -DNSS_USE_ABI32_FPU
 endif
