commit: 64263f4e992de418c2435ba4c56db9c79d246c8e Author: syderitic <onun23 <AT> gmail <DOT> com> AuthorDate: Sun Dec 4 22:38:37 2016 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue Dec 20 17:51:29 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64263f4e
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 cc92a34..7873d14 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 " ;; *) ;;