Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Waldemar Brodkorb <wbx@openadk.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] zeromq: fix sparc32 compile
Date: Fri, 3 Jun 2016 05:16:45 +0200	[thread overview]
Message-ID: <20160603031645.GA28308@waldemar-brodkorb.de> (raw)

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

             reply	other threads:[~2016-06-03  3:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-03  3:16 Waldemar Brodkorb [this message]
2016-06-03  7:48 ` [Buildroot] [PATCH] zeromq: fix sparc32 compile Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160603031645.GA28308@waldemar-brodkorb.de \
    --to=wbx@openadk.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox