aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/ext
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanleycheung@google.com>2015-06-25 15:12:41 -0700
committerGravatar Stanley Cheung <stanleycheung@google.com>2015-06-25 15:12:41 -0700
commitf4a99a1471a97a9c4b623f42aed8a988fc7e605f (patch)
treeb74707cd2f9dabbef613c4ddda56634b7b3e3d0f /src/php/ext
parent88f8e940a0ec77037f5dd5a1e3ffed3220111a17 (diff)
php extension: do not link rt in osx
Diffstat (limited to 'src/php/ext')
-rwxr-xr-xsrc/php/ext/grpc/config.m49
1 files changed, 7 insertions, 2 deletions
diff --git a/src/php/ext/grpc/config.m4 b/src/php/ext/grpc/config.m4
index b485aabf40..8bacdfbfec 100755
--- a/src/php/ext/grpc/config.m4
+++ b/src/php/ext/grpc/config.m4
@@ -35,8 +35,13 @@ if test "$PHP_GRPC" != "no"; then
PHP_ADD_LIBRARY(dl,,GRPC_SHARED_LIBADD)
PHP_ADD_LIBRARY(dl)
- PHP_ADD_LIBRARY(rt,,GRPC_SHARED_LIBADD)
- PHP_ADD_LIBRARY(rt)
+ case $host in
+ *darwin*) ;;
+ *)
+ PHP_ADD_LIBRARY(rt,,GRPC_SHARED_LIBADD)
+ PHP_ADD_LIBRARY(rt)
+ ;;
+ esac
GRPC_LIBDIR=$GRPC_DIR/${GRPC_LIB_SUBDIR-lib}