Skip to contentSkip to conversation

zeromq: fix sparc32 compile

PATCH Superseded Waldemar Brodkorb 2 participants 2 messages Jun 3, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 zeromq: fix sparc32 compile

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

---
 package/zeromq/0003-fix-sparc-compile.patch |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 package/zeromq/0003-fix-sparc-compile.patch
package/zeromq/0003-fix-sparc-compile.patch new file +18 -0
new file mode 100644
index 0000000..e4f1881
@@ -0,0 +1,18 @@
+Fix sparcv8 compile
+Suggested upstream:
+https://github.com/zeromq/libzmq/issues/2021
+
+Signed-off-by: Waldemar Brodkorb <[email protected]>
+
+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++])
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 zeromq: fix sparc32 compile

Hello,

package/zeromq/0003-fix-sparc-compile.patch line 5

Quoted 11 lines · Waldemar Brodkorb
package/zeromq/0003-fix-sparc-compile.patch new file +5 -0
new file mode 100644
index 0000000..e4f1881
@@ -0,0 +1,18 @@
+Fix sparcv8 compile
+Suggested upstream:
+https://github.com/zeromq/libzmq/issues/2021
+
+Signed-off-by: Waldemar Brodkorb <[email protected]>

For projects hosted on Git upstream, please generate a Git formatted patch. Also, the title should be on its own line, separated from the rest of the description by an empty line.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com