Skip to content

Instantly share code, notes, and snippets.

Created April 25, 2013 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5458192 to your computer and use it in GitHub Desktop.
Save anonymous/5458192 to your computer and use it in GitHub Desktop.
sh4_mutex.patch
--- configure.in.orig 2013-04-25 15:16:02.000000000 +0800
+++ configure.in 2013-04-25 15:17:38.000000000 +0800
@@ -87,6 +87,12 @@
# OS-specific tests
case "${host_os}" in
+ sh-* | sh[34]*-*)
+ # http://stackoverflow.com/questions/16196749/compile-zmq-on-sh4-cpu-and-occurs-referenced-by-dso-error
+ AC_DEFINE(ZMQ_FORCE_MUTEXES, 1, [Force to use mutexes])
+ CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS"
+ AC_DEFINE(ZMQ_HAVE_LINUX, 1, [Have Linux OS])
+ ;;
*linux*)
# Define on Linux to enable all library features. Define if using a gnu compiler
if test "x$GXX" = "xyes"; then
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment