summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2018-06-17 16:00:06 -0700
committerStanislav Malyshev <stas@php.net>2018-06-17 16:42:41 -0700
commit5dd1ef90caec3021e6ce55c8554e695edf641eaf (patch)
treeb67c87707a64c07ea1ad8ba05175c86d9e8cd45a
parent11507c0e1bfa17a96480f3648397f6975c31551e (diff)
downloadphp-git-5dd1ef90caec3021e6ce55c8554e695edf641eaf.tar.gz
ICU 59+ requires C++11 and errors out without the option
-rw-r--r--ext/intl/config.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/intl/config.m4 b/ext/intl/config.m4
index 52408f8e91..e8fad2e432 100644
--- a/ext/intl/config.m4
+++ b/ext/intl/config.m4
@@ -18,6 +18,9 @@ if test "$PHP_INTL" != "no"; then
else
icu_spoof_src=""
fi
+ if test "$icu_version" -ge "59000"; then
+ ICU_CXXFLAGS="$ICU_CXXFLAGS -std=c++11 -stdlib=libc++"
+ fi
PHP_NEW_EXTENSION(intl, php_intl.c \
intl_error.c \
intl_convert.c \