Files
gentoo/dev-python/numpy/files/numpy-1.24.3-fix-c++-linkage.patch
Sam James 95bc234cf4 dev-python/numpy: fix build/link with libcxx
New revision as this pretty much only worked by chance before and could
affect the installed files as a result.

Closes: https://bugs.gentoo.org/893962
Signed-off-by: Sam James <sam@gentoo.org>
2023-06-12 01:44:06 +01:00

26 lines
993 B
Diff

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 <ralf.gommers@gmail.com>
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,