Changeset View
Changeset View
Standalone View
Standalone View
devel/boost-libs/files/patch-boost_regex_config.hpp
- This file was added.
Required for USES=compiler:gcc-c++11-lib consumers: | |||||
$ cat >test.cc | |||||
#include <boost/regex.hpp> | |||||
int main(void) { | |||||
boost::regex regex(".*"); | |||||
return 0; | |||||
} | |||||
$ g++8 -nostdinc++ -isystem/usr/include/c++/v1 -isystem/usr/local/include -L/usr/local/lib -lboost_regex test.cc | |||||
/tmp//ccDvMULY.o: In function `boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::assign(char const*, char const*, unsigned int)': | |||||
test.cc:(.text._ZN5boost11basic_regexIcNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEE6assignEPKcS7_j[_ZN5boost11basic_regexIcNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEE6assignEPKcS7_j]+0x2a): undefined reference to `boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*, unsigned int)' | |||||
collect2: error: ld returned 1 exit status | |||||
--- boost/regex/config.hpp.orig 2018-10-30 22:45:30 UTC | |||||
+++ boost/regex/config.hpp | |||||
@@ -117,7 +117,7 @@ | |||||
* Clang fails to export template instances with -fvisibility=hidden, see | |||||
* https://github.com/boostorg/regex/issues/49 | |||||
*/ | |||||
-#ifdef __clang__ | |||||
+#if defined(__clang__) || defined(_LIBCPP_VERSION) | |||||
# define BOOST_REGEX_NO_EXTERNAL_TEMPLATES | |||||
#endif | |||||