2 avoid adding -lstdc++ when linking php-common
3 it's needed for ext/intl
4 but it requires icu which already links with stdc++
5 so just omit PHP_ADD_LIBRARY(stdc++)
7 --- php-7.0.6/build/php.m4~ 2016-05-16 18:31:11.000000000 +0300
8 +++ php-7.0.6/build/php.m4 2016-05-16 18:50:34.614991634 +0300
10 if test -z "$php_cxx_done"; then
13 - PHP_ADD_LIBRARY(stdc++)
17 --- php-7.0.6/ext/intl/config.m4~ 2016-04-28 21:13:06.000000000 +0300
18 +++ php-7.0.6/ext/intl/config.m4 2016-05-16 18:49:53.909531704 +0300
20 [Enable internationalization support])])
22 if test "$PHP_INTL" != "no"; then
23 + dnl -lstdc++ not needed, will be inherited from icu
24 PHP_SETUP_ICU(INTL_SHARED_LIBADD)
25 PHP_SUBST(INTL_SHARED_LIBADD)
26 INTL_COMMON_FLAGS="$ICU_CFLAGS -Wno-write-strings -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"