From: Marius Brehler Date: Tue, 3 Jan 2017 08:23:55 +0000 (+0100) Subject: eclass/cuda.eclass: Fix passing compiler and linker options X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=a85d17b70ad468b095ab3d2fa3d10ab5d093f4b5;p=gentoo.git 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 --- 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