nixpkgs/pkgs/development/libraries/qt-5/5.4
Bjørn Forsman 06ed82677a qt5: embed path to mesa (libGL) in Qt mkspecs file
Fixes this problem, when building apps in QtCreator:

  ...(compile output window)
  g++ -Wl,-rpath,/nix/store/1w7h7p6s2srfw2ady90k7072991lrnpp-qtbase-5.4.2/lib \
      -o qt-test3 main.o mainwindow.o moc_mainwindow.o \
      -L/nix/store/1w7h7p6s2srfw2ady90k7072991lrnpp-qtbase-5.4.2/lib \
      -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
  /nix/store/b8qhjrwf8sf9ggkjxqqav7f1m6w83bh0-binutils-2.23.1/bin/ld: cannot find -lGL
  collect2: error: ld returned 1 exit status

mesa is already in the closure of Qt, so there is no size increase.
The patch is copied into both qt-5.3 and qt-5.4 directories, like other
patches are.

Note that programs still can _run_ against a different libGL (e.g. one
provided by nvidia) by configuring the dynamic linker. For instance,
NixOS sets the LD_LIBRARY_PATH environment variable to
/run/opengl-driver/lib/, meaning that whatever libGL is found there
will be used instead of the default (mesa).
2015-08-29 22:21:57 +02:00
..
0001-dlopen-gtkstyle.patch
0002-dlopen-webkit-nsplugin.patch
0003-glib-2.32.patch
0004-dlopen-resolv.patch
0005-dlopen-gl.patch
0006-tzdir.patch
0007-dlopen-webkit-gtk.patch
0008-dlopen-webkit-udev.patch
0009-dlopen-serialport-udev.patch
0010-dlopen-libXcursor.patch
0011-dlopen-openssl.patch
0012-dlopen-dbus.patch
0013-xdg_config_dirs.patch
0014-mkspecs-libgl.patch qt5: embed path to mesa (libGL) in Qt mkspecs file 2015-08-29 22:21:57 +02:00
0100-ssl.patch add qt decrypt ssl traffic option 2015-06-12 13:09:27 +02:00
default.nix qt54: regenerate manifest 2015-06-25 09:03:41 -05:00
manifest.json qt54: regenerate manifest 2015-06-25 09:03:41 -05:00
manifest.sh qt54: regenerate manifest 2015-06-25 09:03:41 -05:00
qt-submodule.nix qt54: set runtime env vars during build for makeWrapper 2015-08-23 10:16:21 -05:00
qtbase.nix qt5: embed path to mesa (libGL) in Qt mkspecs file 2015-08-29 22:21:57 +02:00
setup-hook.sh qt54: create share/ in setupHook 2015-08-23 14:29:09 -05:00