As pointed out by some source compiling position independent code with the -fPIC flag is mandatory when compiled shared libraries for AMD64 architecture.
In the CUDA SDK’s “common/common.mk” file included from the Makefiles, “-fPIC” is specified only for the linker, not for the C and C++ compiler :
whereas, it should be :
This poses problem when trying to compile shared libraries, and as of CUDA version 2.1, still yields the following error message :
Could NVIDIA’s developer please fix ?
Thank you very much !