diff options
author | Anatol Belski <ab@php.net> | 2018-04-05 16:46:34 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2018-04-05 16:46:34 +0200 |
commit | 863aeddc35df3a31f71971ba9f260d1b7b5791c8 (patch) | |
tree | e57599eb9b9eeac3975be32bbfa5b344f75d2228 /ext | |
parent | df2e4fd8fc219baae0a43e2eee4dd1ebe6b077fa (diff) | |
parent | e01f88df7cf74355caf5db31b778721a50bd3d22 (diff) | |
download | php-git-863aeddc35df3a31f71971ba9f260d1b7b5791c8.tar.gz |
Merge branch 'PHP-7.2'
* PHP-7.2:
Group common flags
Diffstat (limited to 'ext')
-rw-r--r-- | ext/intl/config.m4 | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ext/intl/config.m4 b/ext/intl/config.m4 index e8428e1cbb..52408f8e91 100644 --- a/ext/intl/config.m4 +++ b/ext/intl/config.m4 @@ -9,6 +9,7 @@ if test "$PHP_INTL" != "no"; then PHP_SETUP_ICU(INTL_SHARED_LIBADD) PHP_SUBST(INTL_SHARED_LIBADD) PHP_REQUIRE_CXX() + INTL_COMMON_FLAGS="$ICU_INCS -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1" if test "$icu_version" -ge "4002"; then icu_spoof_src=" spoofchecker/spoofchecker_class.c \ spoofchecker/spoofchecker.c\ @@ -67,9 +68,9 @@ if test "$PHP_INTL" != "no"; then transliterator/transliterator_methods.c \ uchar/uchar.c \ idn/idn.c \ - $icu_spoof_src, $ext_shared,,$ICU_INCS -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1,cxx) + $icu_spoof_src, $ext_shared,,$INTL_COMMON_FLAGS,cxx) - PHP_INTL_CPP_SOURCES="intl_convertcpp.cpp \ + PHP_INTL_CXX_SOURCES="intl_convertcpp.cpp \ common/common_enum.cpp \ common/common_date.cpp \ dateformat/dateformat_format_object.cpp \ @@ -88,11 +89,11 @@ if test "$PHP_INTL" != "no"; then breakiterator/rulebasedbreakiterator_methods.cpp \ breakiterator/codepointiterator_internal.cpp \ breakiterator/codepointiterator_methods.cpp" - PHP_INTL_CPP_FLAGS="$ICU_INCS -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ICU_CXXFLAGS" + PHP_INTL_CXX_FLAGS="$INTL_COMMON_FLAGS $ICU_CXXFLAGS" if test "$ext_shared" = "no"; then - PHP_ADD_SOURCES(PHP_EXT_DIR(intl), $PHP_INTL_CPP_SOURCES, $PHP_INTL_CPP_FLAGS) + PHP_ADD_SOURCES(PHP_EXT_DIR(intl), $PHP_INTL_CXX_SOURCES, $PHP_INTL_CXX_FLAGS) else - PHP_ADD_SOURCES_X(PHP_EXT_DIR(intl), $PHP_INTL_CPP_SOURCES, $PHP_INTL_CPP_FLAGS, shared_objects_intl, yes) + PHP_ADD_SOURCES_X(PHP_EXT_DIR(intl), $PHP_INTL_CXX_SOURCES, $PHP_INTL_CXX_FLAGS, shared_objects_intl, yes) fi PHP_ADD_BUILD_DIR($ext_builddir/collator) |