Date: Monday, April 8, 2013 @ 16:10:06 Author: svenstaro Revision: 87884
upgpkg: cuda 5.0.35-5 More hacks for gcc 4.8 Modified: cuda/trunk/PKGBUILD ----------+ PKGBUILD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2013-04-08 12:53:13 UTC (rev 87883) +++ PKGBUILD 2013-04-08 14:10:06 UTC (rev 87884) @@ -2,7 +2,7 @@ # Maintainer: Sven-Hendrik Haase <[email protected]> pkgname=cuda pkgver=5.0.35 -pkgrel=4 +pkgrel=5 pkgdesc="NVIDIA's GPU programming toolkit" arch=('i686' 'x86_64') url="http://www.nvidia.com/object/cuda_home.html" @@ -37,11 +37,15 @@ ./cudatoolkit_${pkgver}_linux_${_arch}_fedora16.run -prefix=$pkgdir/opt/cuda -noprompt ./cuda-samples_${pkgver}_linux.run -cudaprefix=$pkgdir/opt/cuda -prefix=$pkgdir/opt/cuda/samples -noprompt + # Now, let the hacks begin! + # allow gcc 4.7 to work sed -i "/unsupported GNU/d" $pkgdir/opt/cuda/include/host_config.h # allow gcc 4.8 to work sed -i "1 i #define __STRICT_ANSI__" $pkgdir/opt/cuda/include/cuda_runtime.h + echo "#undef _GLIBCXX_ATOMIC_BUILTINS" >> $pkgdir/opt/cuda/include/cuda_runtime.h + echo "#define _GLIBCXX_GTHREAD_USE_WEAK 0" >> $pkgdir/opt/cuda/include/cuda_runtime.h # fix nvidia path fuckup sed -i "s|/build/pkg||g" $pkgdir/opt/cuda/bin/nvvp
