eclass/cuda.eclass: Fix passing compiler and linker options
authorMarius Brehler <marbre@linux.sungazer.de>
Tue, 3 Jan 2017 08:23:55 +0000 (09:23 +0100)
committerJustin Lecher <jlec@gentoo.org>
Tue, 3 Jan 2017 08:46:22 +0000 (08:46 +0000)
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

eclass/cuda.eclass

index 7873d14d270821b284b047fd468d641f15d5ba5e..79763e1d100a63df800743aff0c4d4aa51428321 100644 (file)
@@ -110,7 +110,7 @@ cuda_sanitize() {
        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