X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=intl-stdc%2B%2B.patch;fp=intl-stdc%2B%2B.patch;h=f762c9b1e6d646823face55b762d58b6800915ee;hb=2145ef2126854956fb897978f38cda33bdc6672c;hp=0000000000000000000000000000000000000000;hpb=cb6675ca3dd8d6b8119bced030fd5ee25f5397df;p=packages%2Fphp.git diff --git a/intl-stdc++.patch b/intl-stdc++.patch new file mode 100644 index 0000000..f762c9b --- /dev/null +++ b/intl-stdc++.patch @@ -0,0 +1,26 @@ + +avoid adding -lstdc++ when linking php-common +it's needed for ext/intl +but it requires icu which already links with stdc++ +so just omit PHP_ADD_LIBRARY(stdc++) + +--- php-7.0.6/acinclude.m4~ 2016-05-16 18:31:11.000000000 +0300 ++++ php-7.0.6/acinclude.m4 2016-05-16 18:50:34.614991634 +0300 +@@ -762,7 +762,6 @@ + if test -z "$php_cxx_done"; then + AC_PROG_CXX + AC_PROG_CXXCPP +- PHP_ADD_LIBRARY(stdc++) + php_cxx_done=yes + fi + ]) +--- php-7.0.6/ext/intl/config.m4~ 2016-04-28 21:13:06.000000000 +0300 ++++ php-7.0.6/ext/intl/config.m4 2016-05-16 18:49:53.909531704 +0300 +@@ -6,6 +6,7 @@ + [ --enable-intl Enable internationalization support]) + + if test "$PHP_INTL" != "no"; then ++ dnl -lstdc++ not needed, will be inherited from icu + PHP_SETUP_ICU(INTL_SHARED_LIBADD) + PHP_SUBST(INTL_SHARED_LIBADD) + PHP_REQUIRE_CXX()