How to force cudart=shared (linux)

Hi,

I would like to know how to force the nvcc compiler to use always the compiler option --lcudart=shared. I have tried to add this option in the nvcc.profile file.

Could anybody help me?

Thanks!

Adrián