aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/config.m4.template
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanleycheung@google.com>2016-02-23 22:39:25 -0800
committerGravatar Stanley Cheung <stanleycheung@google.com>2016-02-23 22:39:25 -0800
commitbf74d69ed601796fca2d6e737519cc1c2de7c60c (patch)
treed93f9c8f7faf8167f0db13a0d3358276ceded8bd /templates/config.m4.template
parent5adb71fb9add555ac161ebf745e5ac104fe3f847 (diff)
fix php artifact name and update config.m4 template
Diffstat (limited to 'templates/config.m4.template')
-rw-r--r--templates/config.m4.template14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/config.m4.template b/templates/config.m4.template
index 1f8c1d9ca4..dbc12188dc 100644
--- a/templates/config.m4.template
+++ b/templates/config.m4.template
@@ -11,8 +11,22 @@
PHP_ADD_INCLUDE(../../grpc/src/php/ext/grpc)
PHP_ADD_INCLUDE(../../grpc/third_party/boringssl/include)
+ LIBS="-lpthread $LIBS"
+
+ GRPC_SHARED_LIBADD="-lpthread $GRPC_SHARED_LIBADD"
PHP_ADD_LIBRARY(pthread)
+ PHP_ADD_LIBRARY(dl,,GRPC_SHARED_LIBADD)
+ PHP_ADD_LIBRARY(dl)
+
+ case $host in
+ *darwin*) ;;
+ *)
+ PHP_ADD_LIBRARY(rt,,GRPC_SHARED_LIBADD)
+ PHP_ADD_LIBRARY(rt)
+ ;;
+ esac
+
PHP_NEW_EXTENSION(grpc,
% for source in php_config_m4.src:
${source} ${"\\"}