Files
nixpkgs/pkgs/development/python-modules/cupy/link-static-libraries.patch
Pratham Patel 2a53e7f0eb python3Packages.cupy: 14.1.1 -> 14.2.0
The last hunk in `link-static-libraries.patch` was dropped because
upstream dropped that code block in:
f93a1630cc

Also unblocks build failure on `aarch64-linux` (that I know of).
2026-09-24 00:33:08 +05:30

19 lines
785 B
Diff

Instead of looking up static libraries by hand in `$CUDA_PATH/lib{64,}` (which does not work with
the split CUDA redistributables), link them like any other library, so that the compiler wrapper
finds them in the (nix) `buildInputs`.
--- a/install/cupy_builder/cupy_setup_build.py
+++ b/install/cupy_builder/cupy_setup_build.py
@@ -423,10 +423,7 @@
s = copy.deepcopy(settings)
if not no_cuda:
- s['libraries'] = module.libraries
- s['extra_objects'] = [
- _find_static_library(name) for name in module.static_libraries
- ]
+ s['libraries'] = module.static_libraries + module.libraries
compile_args = s.setdefault('extra_compile_args', [])
link_args = s.setdefault('extra_link_args', [])