From 64263f4e992de418c2435ba4c56db9c79d246c8e Mon Sep 17 00:00:00 2001 From: syderitic Date: Sun, 4 Dec 2016 22:38:37 +0000 Subject: [PATCH] cuda.eclass: fix 'gcc-bindir -f' output to not use '=' in opt The '=' with the "" around the bindir are causing a "not a valid directory" error while compiling with cuda support. It now works as expected: with gcc-5.4.0 and cuda 7.5 NVCCFLAGS are set properly to gcc-4.9.x Closes: https://github.com/gentoo/gentoo/pull/3013 --- eclass/cuda.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclass/cuda.eclass b/eclass/cuda.eclass index cc92a3466256..7873d14d2708 100644 --- a/eclass/cuda.eclass +++ b/eclass/cuda.eclass @@ -31,7 +31,7 @@ if [[ -z ${_CUDA_ECLASS} ]]; then # @FUNCTION: cuda_gccdir # @USAGE: [-f] -# @RETURN: gcc bindir compatible with current cuda, optionally (-f) prefixed with "--compiler-bindir=" +# @RETURN: gcc bindir compatible with current cuda, optionally (-f) prefixed with "--compiler-bindir " # @DESCRIPTION: # Helper for determination of the latest gcc bindir supported by # then current nvidia cuda toolkit. @@ -39,7 +39,7 @@ if [[ -z ${_CUDA_ECLASS} ]]; then # Example: # @CODE # cuda_gccdir -f -# -> --compiler-bindir="/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3" +# -> --compiler-bindir "/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3" # @CODE cuda_gccdir() { debug-print-function ${FUNCNAME} "$@" @@ -55,7 +55,7 @@ cuda_gccdir() { while [ "$1" ]; do case $1 in -f) - flag="--compiler-bindir=" + flag="--compiler-bindir " ;; *) ;; -- 2.26.2