[arch-commits] Commit in cuda/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Tue Oct 3 02:43:40 UTC 2017
Date: Tuesday, October 3, 2017 @ 02:43:39
Author: svenstaro
Revision: 261344
upgpkg: cuda 9.0.176-4
use gcc6
Modified:
cuda/trunk/PKGBUILD
----------+
PKGBUILD | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-10-03 02:11:58 UTC (rev 261343)
+++ PKGBUILD 2017-10-03 02:43:39 UTC (rev 261344)
@@ -2,12 +2,12 @@
# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
pkgname=cuda
pkgver=9.0.176
-pkgrel=3
+pkgrel=4
pkgdesc="NVIDIA's GPU programming toolkit"
arch=('x86_64')
url="http://www.nvidia.com/object/cuda_home.html"
license=('custom:NVIDIA')
-depends=('gcc-libs' 'opencl-nvidia')
+depends=('gcc-libs' 'opencl-nvidia' 'gcc6')
replaces=('cuda-toolkit' 'cuda-sdk')
provides=('cuda-toolkit' 'cuda-sdk')
optdepends=('gdb: for cuda-gdb')
@@ -61,8 +61,9 @@
# Hopefully we can remove this for later version of cuda.
sed -i "1 i#define _BITS_FLOATN_H" "${pkgdir}/opt/cuda/include/host_defines.h"
- # Hack for gcc7
- sed -i "/.*unsupported GNU version.*/d" "${pkgdir}/opt/cuda/include/crt/host_config.h"
+ # Needs gcc6
+ ln -s /usr/bin/gcc-6 "${pkgdir}/opt/cuda/bin/gcc"
+ ln -s /usr/bin/g++-6 "${pkgdir}/opt/cuda/bin/g++"
# Install profile and ld.so.config files
install -Dm755 "${srcdir}/cuda.sh" "${pkgdir}/etc/profile.d/cuda.sh"
More information about the arch-commits
mailing list