From 44e55911df28dfe268e7dabcd9273d9587f05d67 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Wed, 23 Oct 2024 06:54:55 +0800 Subject: [PATCH] Fixed build script for NVIDIA CUDA version of standard Zhivo library. --- build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index 24995ce..b4345c3 100644 --- a/build.py +++ b/build.py @@ -138,8 +138,9 @@ cuda_build_args += cpp_files + ['-o', OUTPUT_EXECUTABLE + '-nvidia'] cuda_lib_args = [ - 'nvcc', '-Ilib', '-shared', '-o', + 'nvcc', '--shared', '-Ilib', '-o', os.path.join('dist', 'stdzhv1.0-nvidia'), + '--compiler-options \'-fPIC\'', rt_bin ] + cc_files