cuda.eclass: fix 'gcc-bindir -f' output to not use '=' in opt
authorsyderitic <onun23@gmail.com>
Sun, 4 Dec 2016 22:38:37 +0000 (22:38 +0000)
committerMichał Górny <mgorny@gentoo.org>
Tue, 20 Dec 2016 17:51:29 +0000 (18:51 +0100)
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

index cc92a3466256be380d32613ae9db1a4c04e405aa..7873d14d270821b284b047fd468d641f15d5ba5e 100644 (file)
@@ -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 "
                                ;;
                        *)
                                ;;