diff options
Diffstat (limited to 'templates/config.m4.template')
-rw-r--r-- | templates/config.m4.template | 14 |
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} ${"\\"} |