As documented in 'nvcc --help', the correct syntax is:
--compiler-options <options>,... (-Xcompiler)
--linker-options <options>,... (-Xlinker)
Closes: https://github.com/gentoo/gentoo/pull/3310
NVCCFLAGS+=" $(cuda_gccdir -f)"
# Tell nvcc which flags should be used for underlying C compiler
- NVCCFLAGS+=" --compiler-options=\"${CXXFLAGS}\" --linker-options=\"${rawldflags// /,}\""
+ NVCCFLAGS+=" --compiler-options \"${CXXFLAGS}\" --linker-options \"${rawldflags// /,}\""
debug-print "Using ${NVCCFLAGS} for cuda"
export NVCCFLAGS