tags 780106 + patch Am 09.03.2015 um 12:26 schrieb Sylvestre Ledru: > On 09/03/2015 12:19, Jan Henke wrote: >> Package: src:libc++ >> Severity: wishlist >> User: [email protected] >> >> Dear maintainer, >> >> please build this package on kfreebsd-any too. FreeBSD uses libc++ as the >> systems default C++ standard library implementation in recent releases. It is >> therefore very beneficial for kfreebsd-any to have these binaries too. >> >> I am currently investigating the build errors with the current version and >> hope >> to provide a patch to fix those soon. >> >> > Excellent. I will be happy to upload it right after! > > Don't hesitate to sync with upstream sources. > > Sylvestre
It was much simpler than I thought. It actually just needed one additional || defined(__GLIBC__) to compile. The patch is attached. Best regards Jan
--- a/libcxx/include/locale +++ b/libcxx/include/locale @@ -229,7 +229,7 @@ typedef _VSTD::unique_ptr<__locale_struc // OSX has nice foo_l() functions that let you turn off use of the global // locale. Linux, not so much. The following functions avoid the locale when // that's possible and otherwise do the wrong thing. FIXME. -#if defined(__linux__) || defined(__EMSCRIPTEN__) || defined(_AIX) +#if defined(__linux__) || defined(__EMSCRIPTEN__) || defined(_AIX) || defined(__GLIBC__) #ifdef _LIBCPP_LOCALE__L_EXTENSIONS decltype(MB_CUR_MAX_L(_VSTD::declval<locale_t>()))
signature.asc
Description: OpenPGP digital signature

