blob: ae7d5ba0ea49cc98637ae10f3fee36f285325098 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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,
|