diff options
author | ZhouyihaiDing <ddyihai@google.com> | 2018-03-24 19:06:24 -0700 |
---|---|---|
committer | ZhouyihaiDing <ddyihai@google.com> | 2018-03-26 09:20:34 -0700 |
commit | 32a96fef44fcba718b2368e45862c256d36eb97c (patch) | |
tree | f784f80864a84f100a5ba57b25a5d5563c993d44 /config.m4 | |
parent | 4d52dae3e709c3558e868c2880dd8d64e215426a (diff) |
PHP: fix pecl build error
Diffstat (limited to 'config.m4')
-rw-r--r-- | config.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -11,8 +11,8 @@ if test "$PHP_GRPC" != "no"; then LIBS="-lpthread $LIBS" - CFLAGS="-Wall -Werror -Wno-parentheses-equality -Wno-unused-value -std=c11 -g -O2" - CXXFLAGS="-std=c++11 -fno-exceptions -fno-rtti -g -O2" + CFLAGS="-Wall -Werror -Wno-parentheses-equality -Wno-unused-value -std=c11 -g -O2 -D PB_FIELD_16BIT=1" + CXXFLAGS="-std=c++11 -fno-exceptions -fno-rtti -g -O2 -D PB_FIELD_16BIT=1" GRPC_SHARED_LIBADD="-lpthread $GRPC_SHARED_LIBADD" PHP_REQUIRE_CXX() PHP_ADD_LIBRARY(pthread) |