aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/mozilla/nss-3.12.6/38_mips64_build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/mozilla/nss-3.12.6/38_mips64_build.patch')
-rw-r--r--recipes/mozilla/nss-3.12.6/38_mips64_build.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes/mozilla/nss-3.12.6/38_mips64_build.patch b/recipes/mozilla/nss-3.12.6/38_mips64_build.patch
new file mode 100644
index 0000000000..8d4e318fd5
--- /dev/null
+++ b/recipes/mozilla/nss-3.12.6/38_mips64_build.patch
@@ -0,0 +1,27 @@
+## 38_mips64_build.patch by Mike Hommey <glandium@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Patch from Martin Michlmayr for mips64 builds. bz#330626
+
+diff --git a/mozilla/security/coreconf/Linux.mk b/mozilla/security/coreconf/Linux.mk
+index 86d3edc..4ed2e80 100644
+--- a/mozilla/security/coreconf/Linux.mk
++++ b/mozilla/security/coreconf/Linux.mk
+@@ -80,6 +80,9 @@ else
+ ifeq (,$(filter-out parisc%,$(OS_TEST)))
+ CPU_ARCH = hppa
+ else
++ifeq ($(OS_TEST),mips64)
++ CPU_ARCH = mips
++else
+ ifeq (,$(filter-out i%86,$(OS_TEST)))
+ OS_REL_CFLAGS = -Di386
+ CPU_ARCH = x86
+@@ -97,6 +100,7 @@ endif
+ endif
+ endif
+ endif
++endif
+
+
+ LIBC_TAG = _glibc