aboutsummaryrefslogtreecommitdiff
path: root/package/zeromq
diff options
context:
space:
mode:
authorGravatar Waldemar Brodkorb <wbx@openadk.org>2016-06-04 13:42:33 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-06-07 23:48:01 +0200
commitc874255523ff0c507d12283f4cc44f1bb6258729 (patch)
tree6a0571cebd6f98b802df136a00a25796429a4ae0 /package/zeromq
parentc8cd2736372a923fb35804af096a5445e8e275e8 (diff)
downloadbuildroot-c874255523ff0c507d12283f4cc44f1bb6258729.tar.gz
buildroot-c874255523ff0c507d12283f4cc44f1bb6258729.tar.bz2
zeromq: fix sparc32 compile
Code is otherwise compiled with sparcv9 optimization and cannot be run on sparc32 (sparcv8) machine. Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/zeromq')
-rw-r--r--package/zeromq/0003-allow-to-build-sparc-v8-leon.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/zeromq/0003-allow-to-build-sparc-v8-leon.patch b/package/zeromq/0003-allow-to-build-sparc-v8-leon.patch
new file mode 100644
index 0000000000..126a03b1fb
--- /dev/null
+++ b/package/zeromq/0003-allow-to-build-sparc-v8-leon.patch
@@ -0,0 +1,30 @@
+From d0b22397ebbef8e250c4cad25b8686018804aa15 Mon Sep 17 00:00:00 2001
+From: Waldemar Brodkorb <wbx@uclibc-ng.org>
+Date: Sat, 4 Jun 2016 09:30:49 +0200
+Subject: [PATCH] allow to build sparc (v8,leon)
+
+Only set sparcv9 optimization for sparc64 systems.
+This allows to run for example application using zeromq
+on sparc32 systems.
+
+Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index af8293c..cabd734 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -291,7 +291,7 @@ fi
+
+ # CPU-specific optimizations
+ case "${host_cpu}" in
+- *sparc*)
++ *sparc64*)
+ AC_LANG_PUSH([C++])
+ LIBZMQ_CHECK_LANG_FLAG_PREPEND([-mcpu=v9])
+ AC_LANG_POP([C++])
+--
+2.7.4 (Apple Git-66)
+