summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMarius Brehler <marbre@linux.sungazer.de>2017-01-03 09:23:55 +0100
committerJustin Lecher <jlec@gentoo.org>2017-01-03 08:46:22 +0000
commita85d17b70ad468b095ab3d2fa3d10ab5d093f4b5 (patch)
tree6dae2aeb351a8c8c1d13d79555c31693bd173ffb /eclass
parentdev-util/nvidia-cuda-sdk: Add slot operators (diff)
downloadgentoo-a85d17b70ad468b095ab3d2fa3d10ab5d093f4b5.tar.gz
gentoo-a85d17b70ad468b095ab3d2fa3d10ab5d093f4b5.tar.bz2
gentoo-a85d17b70ad468b095ab3d2fa3d10ab5d093f4b5.zip
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
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cuda.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/cuda.eclass b/eclass/cuda.eclass
index 7873d14d2708..79763e1d100a 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