nvcc very slow at link step

nvcc compiles ok but with certain source code enabled the link phase of nvcc becomes very slow.

It could take a couple of minutes without any output from nvcc before it’s done.

Is it normal or there’s some way to improve it?

thanks.