From bf74d69ed601796fca2d6e737519cc1c2de7c60c Mon Sep 17 00:00:00 2001 From: Stanley Cheung Date: Tue, 23 Feb 2016 22:39:25 -0800 Subject: fix php artifact name and update config.m4 template --- templates/config.m4.template | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'templates/config.m4.template') 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} ${"\\"} -- cgit v1.2.3