summary refs log tree commit diff
path: root/pkgs/os-specific/linux/ati-drivers/builder.sh
diff options
context:
space:
mode:
authorJaka Hudoklin <jakahudoklin@gmail.com>2014-01-22 10:57:43 +0100
committerVladimír Čunát <vcunat@gmail.com>2014-01-23 12:11:28 +0100
commite0000f8ad1cf4b2f85d56033751c6eb61bc7c073 (patch)
tree925740e2a364b8f34d838118c772b95b4d66dfab /pkgs/os-specific/linux/ati-drivers/builder.sh
parentf5461b02d5e998fc03bd11d84a0d5be733672959 (diff)
downloadnixpkgs-e0000f8ad1cf4b2f85d56033751c6eb61bc7c073.tar
nixpkgs-e0000f8ad1cf4b2f85d56033751c6eb61bc7c073.tar.gz
nixpkgs-e0000f8ad1cf4b2f85d56033751c6eb61bc7c073.tar.bz2
nixpkgs-e0000f8ad1cf4b2f85d56033751c6eb61bc7c073.tar.lz
nixpkgs-e0000f8ad1cf4b2f85d56033751c6eb61bc7c073.tar.xz
nixpkgs-e0000f8ad1cf4b2f85d56033751c6eb61bc7c073.tar.zst
nixpkgs-e0000f8ad1cf4b2f85d56033751c6eb61bc7c073.zip
ati-drivers: update to 13.12 (close #1569)
This update is mostly effort from @MarcWeber and @vcunat, now tested on real
hardware making sure it works with multiple GPUs and opencl.
Diffstat (limited to 'pkgs/os-specific/linux/ati-drivers/builder.sh')
-rw-r--r--pkgs/os-specific/linux/ati-drivers/builder.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/ati-drivers/builder.sh b/pkgs/os-specific/linux/ati-drivers/builder.sh
index 2a20aa29fcc..d1ca1b35452 100644
--- a/pkgs/os-specific/linux/ati-drivers/builder.sh
+++ b/pkgs/os-specific/linux/ati-drivers/builder.sh
@@ -8,7 +8,7 @@ die(){ echo $@; exit 1; }
 
 # custom unpack:
 unzip $src
-run_file=$(echo amd-driver-installer-*)
+run_file=$(echo amd-catalyst-*)
 sh $run_file --extract .
 
 eval "$patchPhase"
@@ -181,6 +181,8 @@ GCC_MAJOR="`gcc --version | grep -o -e ") ." | head -1 | cut -d " " -f 2`"
   # make xorg use the ati version
   ln -s $out/lib/xorg/modules/extensions/{fglrx/fglrx-libglx.so,libglx.so}
 
+  # libstdc++ and gcc are needed by some libs
+  patchelf --set-rpath $gcc/$lib_arch $out/lib/libatiadlxx.so
 }
 
 { # build samples
@@ -190,6 +192,7 @@ GCC_MAJOR="`gcc --version | grep -o -e ") ." | head -1 | cut -d " " -f 2`"
   cd samples
   tar xfz ../common/usr/src/ati/fglrx_sample_source.tgz
 
+  eval "$patchPhaseSamples"
 
   ( # build and install fgl_glxgears
     cd fgl_glxgears;