Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] zeromq: fix sparc32 compile
@ 2016-06-03  3:16 Waldemar Brodkorb
  2016-06-03  7:48 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Waldemar Brodkorb @ 2016-06-03  3:16 UTC (permalink / raw)
  To: buildroot

Code is otherwise compiled with sparcv9 optimization and
cannot be run on sparc32 (sparcv8) machine.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
 package/zeromq/0003-fix-sparc-compile.patch |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 package/zeromq/0003-fix-sparc-compile.patch

diff --git a/package/zeromq/0003-fix-sparc-compile.patch b/package/zeromq/0003-fix-sparc-compile.patch
new file mode 100644
index 0000000..e4f1881
--- /dev/null
+++ b/package/zeromq/0003-fix-sparc-compile.patch
@@ -0,0 +1,18 @@
+Fix sparcv8 compile
+Suggested upstream:
+https://github.com/zeromq/libzmq/issues/2021
+
+Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
+
+diff -Nur zeromq-4.1.4.orig/configure.ac zeromq-4.1.4/configure.ac
+--- zeromq-4.1.4.orig/configure.ac	2015-11-04 09:55:13.000000000 +0100
++++ zeromq-4.1.4/configure.ac	2016-06-03 04:41:16.167033535 +0200
+@@ -293,7 +293,7 @@
+ 
+ # CPU-specific optimizations
+ case "${host_cpu}" in
+-    *sparc*)
++    *sparc64*)
+         AC_LANG_PUSH([C++])
+         LIBZMQ_CHECK_LANG_FLAG_PREPEND([-mcpu=v9])
+         AC_LANG_POP([C++])
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-03  7:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-03  3:16 [Buildroot] [PATCH] zeromq: fix sparc32 compile Waldemar Brodkorb
2016-06-03  7:48 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox