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