summaryrefslogtreecommitdiffstats
path: root/build/linux
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-01-23 12:32:10 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-03-20 15:49:13 +0100
commit0f6c2fdc899b19000c3fcfa3f4e2129dd16a44ce (patch)
treecb8c9f6a645046aaf3794597d71166fcdf837be1 /build/linux
parent4203c3132484cc669bd6f92d180c0623f85f569e (diff)
downloadastra-0f6c2fdc899b19000c3fcfa3f4e2129dd16a44ce.tar.gz
astra-0f6c2fdc899b19000c3fcfa3f4e2129dd16a44ce.tar.bz2
astra-0f6c2fdc899b19000c3fcfa3f4e2129dd16a44ce.tar.xz
astra-0f6c2fdc899b19000c3fcfa3f4e2129dd16a44ce.zip
Change lib/lib64 logic
macOS CUDA uses lib even on 64 bit
Diffstat (limited to 'build/linux')
-rw-r--r--build/linux/configure.ac9
1 files changed, 1 insertions, 8 deletions
diff --git a/build/linux/configure.ac b/build/linux/configure.ac
index 46c84a5..43cb1a8 100644
--- a/build/linux/configure.ac
+++ b/build/linux/configure.ac
@@ -102,14 +102,7 @@ if test x"$NVCC" != xno; then
HAVECUDA=yes
BACKUP_CUDA_LDFLAGS="$LDFLAGS"
if test x"$with_cuda" != x -a x"$with_cuda" != xyes; then
- case $host_cpu in
- x86_64)
- LDFLAGS_CUDA="-L$with_cuda/lib64"
- ;;
- *)
- LDFLAGS_CUDA="-L$with_cuda/lib"
- ;;
- esac
+ test -d $with_cuda/lib64 && LDFLAGS_CUDA="-L$with_cuda/lib64" || LDFLAGS_CUDA="-L$with_cuda/lib"
CPPFLAGS_CUDA="-I$with_cuda/include"
LDFLAGS="$LDFLAGS $LDFLAGS_CUDA"
fi