Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2bd299f

Browse files
committed
Fix shared ext/intl compilation
1 parent 9c37d95 commit 2bd299f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

ext/intl/config.m4

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ if test "$PHP_INTL" != "no"; then
6969
idn/idn.c \
7070
$icu_spoof_src, $ext_shared,,$ICU_INCS -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1,cxx)
7171

72-
PHP_ADD_SOURCES(PHP_EXT_DIR(intl), intl_convertcpp.cpp \
72+
PHP_INTL_CPP_SOURCES="intl_convertcpp.cpp \
7373
common/common_enum.cpp \
7474
common/common_date.cpp \
7575
dateformat/dateformat_format_object.cpp \
@@ -87,8 +87,13 @@ if test "$PHP_INTL" != "no"; then
8787
breakiterator/breakiterator_methods.cpp \
8888
breakiterator/rulebasedbreakiterator_methods.cpp \
8989
breakiterator/codepointiterator_internal.cpp \
90-
breakiterator/codepointiterator_methods.cpp, \
91-
$ICU_INCS -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ICU_EXTRA_FLAGS)
90+
breakiterator/codepointiterator_methods.cpp"
91+
PHP_INTL_CPP_FLAGS="$ICU_INCS -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ICU_EXTRA_FLAGS"
92+
if test "$ext_shared" = "no"; then
93+
PHP_ADD_SOURCES(PHP_EXT_DIR(intl), $PHP_INTL_CPP_SOURCES, $PHP_INTL_CPP_FLAGS)
94+
else
95+
PHP_ADD_SOURCES_X(PHP_EXT_DIR(intl), $PHP_INTL_CPP_SOURCES, $PHP_INTL_CPP_FLAGS, shared_objects_intl, yes)
96+
fi
9297

9398
PHP_ADD_BUILD_DIR($ext_builddir/collator)
9499
PHP_ADD_BUILD_DIR($ext_builddir/converter)

0 commit comments

Comments
 (0)