commit:     a85d17b70ad468b095ab3d2fa3d10ab5d093f4b5
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Tue Jan  3 08:23:55 2017 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Tue Jan  3 08:46:22 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a85d17b7

eclass/cuda.eclass: Fix passing compiler and linker options

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/cuda.eclass b/eclass/cuda.eclass
index 7873d14..79763e1 100644
--- a/eclass/cuda.eclass
+++ b/eclass/cuda.eclass
@@ -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

Reply via email to