I am trying to compile a C project that uses Make and Configure with nvcc because I wan’t to re-write part of it in CUDA. When I run the configure script I pass CC=nvcc so that it uses nvcc as the compiler which works, but when it tries to link something I get the error:
nvcc fatal : Unknown option ‘WL,-soname’
I could edit the Configure script to not pass that option but that wouldn’t help because without specifying the shared object name as being different from the filename the program won’t link properly. How can I fix this problem? Does nvcc support this option with some alias, or can I use a different linker?
Thanks in advance, boonofcake.
The specific line the compilation process is failing on is:
libtool: link: nvcc -shared .O_FILES -L LIB_FILES -WL,-soname
How can I tell automake to use something other than nvcc to link? I am passing the environment variable LD=ld
Shouldn’t it be:
libtool: link: ld -shared .O_FILES -L LIB_FILES -WL,-soname