https://bugs.gentoo.org/893962 https://github.com/numpy/numpy/issues/23122 https://github.com/numpy/numpy/pull/23601 From 0a0240bcdad5daa0b84781719b3f8a002ef0f82b Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Sun, 16 Apr 2023 22:23:38 +0100 Subject: [PATCH] BLD: use the C++ linker to link `_multiarray_umath.so` This gets rid of undefined symbol issues for `assert`. Closes gh-23122 Closes gh-23595 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -1010,9 +1010,6 @@ def generate_umath_doc_header(ext, build_dir): svml_objs.sort() config.add_extension('_multiarray_umath', - # Forcing C language even though we have C++ sources. - # It forces the C linker and don't link C++ runtime. - language = 'c', sources=multiarray_src + umath_src + common_src + [generate_config_h,