From a85d17b70ad468b095ab3d2fa3d10ab5d093f4b5 Mon Sep 17 00:00:00 2001 From: Marius Brehler Date: Tue, 3 Jan 2017 09:23:55 +0100 Subject: eclass/cuda.eclass: Fix passing compiler and linker options As documented in 'nvcc --help', the correct syntax is: --compiler-options ,... (-Xcompiler) --linker-options ,... (-Xlinker) Closes: https://github.com/gentoo/gentoo/pull/3310 --- eclass/cuda.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eclass') 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 -- cgit v1.2.3-65-gdbad