diff options
author | Robert Lu <robberphex@gmail.com> | 2017-10-26 02:39:17 +0800 |
---|---|---|
committer | James E. King, III <jking@apache.org> | 2017-10-26 12:02:20 -0400 |
commit | e54945551f7fcd7d7decc959871f370b489f7fa0 (patch) | |
tree | b5dd13fab38c9463bf14a9aba0e3e1918147bf10 /lib/php | |
parent | 350fe7531feecf7df5208fa19d25730c6ce0a30d (diff) | |
download | thrift-e54945551f7fcd7d7decc959871f370b489f7fa0.tar.gz |
add stdc++ back for php extension build
Client: php
This closes #1400
Diffstat (limited to 'lib/php')
-rw-r--r-- | lib/php/src/ext/thrift_protocol/config.m4 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/php/src/ext/thrift_protocol/config.m4 b/lib/php/src/ext/thrift_protocol/config.m4 index c54be3eb1..e2138c8c2 100644 --- a/lib/php/src/ext/thrift_protocol/config.m4 +++ b/lib/php/src/ext/thrift_protocol/config.m4 @@ -25,6 +25,8 @@ PHP_ARG_ENABLE(thrift_protocol, whether to enable the thrift_protocol extension, if test "$PHP_THRIFT_PROTOCOL" != "no"; then PHP_REQUIRE_CXX() + PHP_ADD_LIBRARY_WITH_PATH(stdc++, "", THRIFT_PROTOCOL_SHARED_LIBADD) + PHP_SUBST(THRIFT_PROTOCOL_SHARED_LIBADD) CXXFLAGS="$CXXFLAGS -std=c++11" PHP_NEW_EXTENSION(thrift_protocol, php_thrift_protocol.cpp, $ext_shared) |