Disable external template instances on cygwin - they lead to duplicate symbols for some reason.

See https://github.com/boostorg/regex/issues/64.
This commit is contained in:
jzmaddock
2018-11-11 17:12:56 +00:00
parent 38afecb48b
commit 3c6cf87718
2 changed files with 5 additions and 1 deletions

View File

@ -120,6 +120,10 @@
#ifdef __clang__ #ifdef __clang__
# define BOOST_REGEX_NO_EXTERNAL_TEMPLATES # define BOOST_REGEX_NO_EXTERNAL_TEMPLATES
#endif #endif
#ifdef __CYGWIN__
/* We get multiply defined symbols without this: */
# define BOOST_REGEX_NO_EXTERNAL_TEMPLATES
#endif
/* /*
* If there isn't good enough wide character support then there will * If there isn't good enough wide character support then there will

View File

@ -19,7 +19,7 @@ project
<define>U_USING_ICU_NAMESPACE=0 <define>U_USING_ICU_NAMESPACE=0
#<toolset>gcc-mw:<link>static #<toolset>gcc-mw:<link>static
#<toolset>gcc-mingw:<link>static #<toolset>gcc-mingw:<link>static
<toolset>gcc-cygwin:<link>static #<toolset>gcc-cygwin:<link>static
<toolset>sun:<link>static <toolset>sun:<link>static
; ;