* NVIDIA driver: set a RUNPATH on libGL.so and friends. This ensures

that applications that link against it don't need to have its
  dependencies (like libXext) in *their* RUNPATHs.
* glxinfo: don't add /var/run/opengl-driver/lib to the RUNPATH.
  Instead LD_LIBRARY_PATH should be set to
  /var/run/opengl-driver/lib at runtime.  This is much more pure, and
  it obviates the need for patchelfing all OpenGL applications.
  (TODO: remove patchelf hacks for other OpenGL programs as well.)

svn path=/nixpkgs/branches/stdenv-updates/; revision=11972
This commit is contained in:
Eelco Dolstra
2008-06-04 09:59:33 +00:00
parent dcf01e5925
commit 9029c3b61f
4 changed files with 20 additions and 25 deletions
+1 -7
View File
@@ -1,4 +1,4 @@
{stdenv, fetchurl, x11, mesa, libXext}:
{stdenv, fetchurl, x11, mesa}:
stdenv.mkDerivation {
name = "glxinfo-6.5.2";
@@ -20,10 +20,4 @@ stdenv.mkDerivation {
ensureDir $out/bin
cp glxinfo glxgears $out/bin
";
postFixup = "
for i in $out/bin/*; do
patchelf --set-rpath /var/run/opengl-driver/lib:${libXext}/lib:$(patchelf --print-rpath $i) $i
done
";
}