Permalink
Browse files

Merge branch 'osx' of https://github.com/benoitc/erlzmq into benoitc-osx

  • Loading branch information...
2 parents 1d1527e + 0eadcdf commit da3ef330d4766703485290d08acaa8a94381fa9f @saleyn saleyn committed Jan 15, 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 da3ef33

Please sign in to comment.