Changeset View
Changeset View
Standalone View
Standalone View
devel/boost-libs/files/patch-regex_visibility
- 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 | |||||
@@ -113,13 +113,6 @@ | |||||
#if defined(__MINGW32__) | |||||
# define BOOST_REGEX_NO_EXTERNAL_TEMPLATES | |||||
#endif | |||||
-/* | |||||
- * Clang fails to export template instances with -fvisibility=hidden, see | |||||
- * https://github.com/boostorg/regex/issues/49 | |||||
- */ | |||||
-#ifdef __clang__ | |||||
-# define BOOST_REGEX_NO_EXTERNAL_TEMPLATES | |||||
-#endif | |||||
/* | |||||
* If there isn't good enough wide character support then there will | |||||
--- libs/regex/build/Jamfile.v2.orig 2018-10-30 22:45:30 UTC | |||||
+++ libs/regex/build/Jamfile.v2 | |||||
@@ -120,6 +120,7 @@ lib boost_regex : ../src/$(SOURCES) icu_options | |||||
: | |||||
<link>shared:<define>BOOST_REGEX_DYN_LINK=1 | |||||
<toolset>gcc-cygwin:<link>static | |||||
+ <local-visibility>global | |||||
; | |||||
boost-install boost_regex ; |