summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorsyderitic <onun23@gmail.com>2016-12-04 22:38:37 +0000
committerMichał Górny <mgorny@gentoo.org>2016-12-20 18:51:29 +0100
commit64263f4e992de418c2435ba4c56db9c79d246c8e (patch)
tree51886a0550df1ec0982790c9d0b3aecd94330ec9 /eclass
parentcuda.eclass: fix g++ check (diff)
downloadgentoo-64263f4e992de418c2435ba4c56db9c79d246c8e.tar.gz
gentoo-64263f4e992de418c2435ba4c56db9c79d246c8e.tar.bz2
gentoo-64263f4e992de418c2435ba4c56db9c79d246c8e.zip
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
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cuda.eclass6
1 files 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 "
;;
*)
;;