Linking NVCC with undefined symbols

I’m trying to use Haskell to call CUDA code over a foreign function interface. This means that I’m compiling using GHC and GHC is using NVCC to link the object files. Typically, GCC is used in this step.

Under the hood, GHC passes “undefined symbols” to the linker:

-u ghczmprim_GHCziTypes_Izh_static_info
-u ghczmprim_GHCziTypes_Czh_static_info

which is an option that NVCC doesn’t support. I know nothing about linking with undefined symbols, but I assume GHC needs these or it wouldn’t put them there. Is there an equivalent option for NVCC or a standard workaround here?

You can see my original question at [url]http://stackoverflow.com/questions/19957104/using-ghc-with-nvcc/19958670[/url].