How to link *.cu file to maya in Linux? how to use -fPIC use nvcc ?????

first , i use:

nvcc - c	 kernel.o   cuda_kernel.cu
g++  -shared  -m64 -DUNIX -D_BOOL -DLINUX -D_GNU_SOURCE -DLINUX_64 -fPIC -fno-strict-aliasing -DREQUIRE_IOSTREAM -Wno-deprecated -DRedHat8_ -O3 -Wall -Wno-multichar -Wno-comment -Wno-sign-compare -funsigned-char -Wno-reorder -fno-gnu-keywords -Wl,-Bsymbolic -o end.so  cuda_main.o  pluginMain.o  kernel.o -L/usr/autodesk/maya2009-x64/lib -lOpenMaya -lFoundation  -L/usr/local/cuda/lib -L/home/open/NVIDIA_CUDA_SDK/common/lib -L/home/open/NVIDIA_CUDA_SDK/lib -lcuda -lcudart -lcutil

/usr/bin/ld: kernel.o: relocation R_X86_64_32 against `a local symbol’ can not be used when making a shared object; recompile with -fPIC

kernel.o: could not read symbols: Bad value

collect2: ld 返回 1

recompile with -fPIC?? how to use -fPIC in nvcc ???

-Xcompiler -fPIC

very very Thanks…