Permalink
Browse files

fix build on OSX.

  • Loading branch information...
1 parent 948dddf commit 03a00938173c197960b9f9f41ac1b3ca09fc42b9 @benoitc benoitc committed Jan 12, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −1 configure.ac
View
@@ -147,7 +147,15 @@ AC_CHECK_HEADER([${ZEROMQ_LIB}/include/zmq.h], [], [
Use the '--with-zeromq=PATH' option to specify location of ZeroMQ])])
CXXFLAGS="${CXXFLAGS# } -I${with_zeromq}/include"
-LDFLAGS="${LDFLAGS# } -L${with_zeromq}/lib -lzmq -Wl,-R${with_zeromq}/lib"
+
+case "${host_os}" in
+ *darwin*)
+ LDFLAGS="${LDFLAGS# } -L${with_zeromq}/lib -lzmq"
+ ;;
+ *)
+ LDFLAGS="${LDFLAGS# } -L${with_zeromq}/lib -lzmq -Wl,-R${with_zeromq}/lib"
+ ;;
+esac
dnl ------------------------------------------------------------------
dnl OS specific tests.

0 comments on commit 03a0093

Please sign in to comment.