I am trying to recompile a large open source project with the Nvidia Cuda Compiler: 'nvcc' (
http://en.wikipedia.org/wiki/CUDA).
nvcc supports all the compile flags that gcc does but not all of the linking options. This shouldn't be a problem however as nvcc generates object files that are compatible with gcc and I should hence be able to compile with nvcc and then link with gcc (linking against the CUDA library).
To compile with nvcc I use:
./configure CC=nvcc
Which successfully creates make files that use nvcc to compile. But the Configuration script does not seem to honor LD=gcc in the same way, ie:
./configure CC=nvcc LD=gcc
still tries to link everything with nvcc which promptly fails because nvcc does not support the option '-soname' without which the project will not link correctly.
What am I doing wrong? How can tell the config script to link with gcc?