summaryrefslogtreecommitdiff
path: root/dev-python/numpy/files/numpy-1.24.3-fix-c++-linkage.patch
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-06-12 13:24:41 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-06-12 13:24:41 +0000
commit0254e0fb0a63203a9afa9f65e260f0ad6707eb11 (patch)
tree195b94c4b06a0c11758d5312dd758bcc85e8c158 /dev-python/numpy/files/numpy-1.24.3-fix-c++-linkage.patch
parent6ce50a42b168f22fed1dde1d94fcd2871efc6465 (diff)
downloadsrcux-0254e0fb0a63203a9afa9f65e260f0ad6707eb11.tar.gz
srcux-0254e0fb0a63203a9afa9f65e260f0ad6707eb11.tar.xz
srcux-0254e0fb0a63203a9afa9f65e260f0ad6707eb11.zip
Adding metadata
Diffstat (limited to 'dev-python/numpy/files/numpy-1.24.3-fix-c++-linkage.patch')
-rw-r--r--dev-python/numpy/files/numpy-1.24.3-fix-c++-linkage.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-python/numpy/files/numpy-1.24.3-fix-c++-linkage.patch b/dev-python/numpy/files/numpy-1.24.3-fix-c++-linkage.patch
new file mode 100644
index 000000000000..ae7d5ba0ea49
--- /dev/null
+++ b/dev-python/numpy/files/numpy-1.24.3-fix-c++-linkage.patch
@@ -0,0 +1,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,