THRIFT-350. php: Fix the extension build when C++ is not already used
authorDavid Reiss <dreiss@apache.org>
Mon, 13 Jul 2009 17:21:03 +0000 (17:21 +0000)
committerDavid Reiss <dreiss@apache.org>
Mon, 13 Jul 2009 17:21:03 +0000 (17:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@793630 13f79535-47bb-0310-9956-ffa450edef68

lib/php/src/ext/thrift_protocol/config.m4

index 8cfb37d..2c338a0 100644 (file)
@@ -8,6 +8,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)
   PHP_NEW_EXTENSION(thrift_protocol, php_thrift_protocol.cpp, $ext_shared)
 fi