Skip to content

Commit

Permalink
Use ICU's CXXFLAGS when using pkg-config
Browse files Browse the repository at this point in the history
This mirrors how ICU's CXXFLAGS are already used when using icu-config.
  • Loading branch information
ryandesign authored and nikic committed Oct 23, 2019
1 parent fa89c41 commit 8daf96c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -2221,7 +2221,8 @@ AC_DEFUN([PHP_SETUP_ICU],[
ICU_LIBS=`$PKG_CONFIG --libs icu-uc icu-io icu-i18n`
ICU_INCS=`$PKG_CONFIG --cflags-only-I icu-uc icu-io icu-i18n`
ICU_CXXFLAGS="-DU_USING_ICU_NAMESPACE=1"
ICU_CXXFLAGS=`$PKG_CONFIG --variable=CXXFLAGS icu-uc`
ICU_CXXFLAGS="$ICU_CXXFLAGS -DU_USING_ICU_NAMESPACE=1"
AC_MSG_RESULT([found $ICU_VERSION])
Expand Down

0 comments on commit 8daf96c

Please sign in to comment.