can't find cudart lib file. using g95 with cuda

I have version 2.2 of CUDA running on my macbook pro. all the sdk examples compiled and work.

I found a Fortran_cuda example that I wanted to test. It’s very simple.
Here is the Makefile. It fails to link since it can’t find the library file cudart.
That is not in the 2.2 version I downloaded, unless I missed something.
Anyone know about where to get the curda library file ‘cudart’?

-----CUT HERE----
all: complex_mul

Define Fortran compiler

#FC= ifort
FC= gfortran

complex_mul: main.f90 Cuda_function.o
$(FC) -o complex_mul main.f90 Cuda_function.o -L/usr/local/cuda/lib -lcudart

Cuda_function.o: Cuda_function.cu
nvcc -c -O3 Cuda_function.cu

clean:
rm complex_mul Cuda_function.o

Found the /usr/local/cuda/lib directory, and made sure to edit my library path in .bash_profile
and now only notice “Undefined symbols” errors (shown below):

—CUT HERE
mike-macbook-pro:Fortran_Cuda mike$ make
gfortran -o complex_mul main.f90 Cuda_function.o -L/usr/local/cuda/lib -lcudart
Undefined symbols:
“___gxx_personality_v0”, referenced from:
___gxx_personality_v0$non_lazy_ptr in Cuda_function.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [complex_mul] Error 1
mikes-macbook-pro:Fortran_Cuda mike$
–CUT HERE

Use :
nvcc -c --host-compilation=C -O3 Cuda_function.cu

to compile the .cu file

Thanks for the tip I will try to edit the simple makefile to include those compile options.

I have a long way to go, but at least I finally got gcc, gfortran, and nvcc going on this Macbook Pro.