Fix PHP build error

pull/20169/head
Esun Kim 5 years ago
parent c25e0b677f
commit a5560e8f73
  1. 2
      config.m4
  2. 7
      src/php/ext/grpc/config.m4
  3. 2
      templates/config.m4.template

@ -33,6 +33,8 @@ if test "$PHP_GRPC" != "no"; then
;;
esac
PHP_SUBST(GRPC_SHARED_LIBADD)
PHP_NEW_EXTENSION(grpc,
src/php/ext/grpc/byte_buffer.c \
src/php/ext/grpc/call.c \

@ -42,14 +42,15 @@ if test "$PHP_GRPC" != "no"; then
dnl PHP_ADD_LIBRARY(pthread,,GRPC_SHARED_LIBADD)
GRPC_SHARED_LIBADD="-lpthread $GRPC_SHARED_LIBADD"
PHP_ADD_LIBRARY(pthread)
PHP_ADD_LIBRARY(stdc++,,GRPC_SHARED_LIBADD)
PHP_ADD_LIBRARY(stdc++)
PHP_ADD_LIBRARY(dl,,GRPC_SHARED_LIBADD)
PHP_ADD_LIBRARY(dl)
case $host in
*darwin*) ;;
*darwin*)
PHP_ADD_LIBRARY(c++,1,GRPC_SHARED_LIBADD)
;;
*)
PHP_ADD_LIBRARY(stdc++,1,GRPC_SHARED_LIBADD)
PHP_ADD_LIBRARY(rt,,GRPC_SHARED_LIBADD)
PHP_ADD_LIBRARY(rt)
;;

@ -35,6 +35,8 @@
;;
esac
PHP_SUBST(GRPC_SHARED_LIBADD)
PHP_NEW_EXTENSION(grpc,
% for source in php_config_m4.src:
${source} ${"\\"}

Loading…
Cancel
Save