Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Tue, 03 Jan 2017 08:46:35
Message-Id: 1483433182.a85d17b70ad468b095ab3d2fa3d10ab5d093f4b5.jlec@gentoo
1 commit: a85d17b70ad468b095ab3d2fa3d10ab5d093f4b5
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Tue Jan 3 08:23:55 2017 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 3 08:46:22 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a85d17b7
7
8 eclass/cuda.eclass: Fix passing compiler and linker options
9
10 As documented in 'nvcc --help', the correct syntax is:
11 --compiler-options <options>,... (-Xcompiler)
12 --linker-options <options>,... (-Xlinker)
13 Closes: https://github.com/gentoo/gentoo/pull/3310
14
15 eclass/cuda.eclass | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18 diff --git a/eclass/cuda.eclass b/eclass/cuda.eclass
19 index 7873d14..79763e1 100644
20 --- a/eclass/cuda.eclass
21 +++ b/eclass/cuda.eclass
22 @@ -110,7 +110,7 @@ cuda_sanitize() {
23 NVCCFLAGS+=" $(cuda_gccdir -f)"
24
25 # Tell nvcc which flags should be used for underlying C compiler
26 - NVCCFLAGS+=" --compiler-options=\"${CXXFLAGS}\" --linker-options=\"${rawldflags// /,}\""
27 + NVCCFLAGS+=" --compiler-options \"${CXXFLAGS}\" --linker-options \"${rawldflags// /,}\""
28
29 debug-print "Using ${NVCCFLAGS} for cuda"
30 export NVCCFLAGS