Skip to content

Commit

Permalink
Link with different flavors of libevent based on the type of OS.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ning Shi committed Aug 27, 2012
1 parent 8e1a400 commit 14bec80
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config.m4
Expand Up @@ -28,15 +28,17 @@ if test "$PHP_VOLTDB" != "no"; then
AC_CANONICAL_HOST
case "${host_os}" in
darwin*)
THIRD_PARTY_LIB=$PHP_VOLTDB/third_party_libs/osx
;;
*)
THIRD_PARTY_LIB=$PHP_VOLTDB/third_party_libs/linux
PHP_ADD_LIBRARY(rt, 1, VOLTDB_SHARED_LIBADD)
;;
esac

PHP_ADD_LIBRARY(stdc++, 1, VOLTDB_SHARED_LIBADD)
PHP_ADD_LIBRARY_WITH_PATH(event, $PHP_VOLTDB/third_party_libs/linux, VOLTDB_SHARED_LIBADD)
PHP_ADD_LIBRARY_WITH_PATH(event_pthreads, $PHP_VOLTDB/third_party_libs/linux, VOLTDB_SHARED_LIBADD)
PHP_ADD_LIBRARY_WITH_PATH(event, $THIRD_PARTY_LIB, VOLTDB_SHARED_LIBADD)
PHP_ADD_LIBRARY_WITH_PATH(event_pthreads, $THIRD_PARTY_LIB, VOLTDB_SHARED_LIBADD)

LDFLAGS="$LDFLAGS $PHP_VOLTDB/libvoltdbcpp.a"

Expand Down

0 comments on commit 14bec80

Please sign in to comment.