QT5.6: Fixes compile error with wrong LD env variable

QT uses -Wl linker flags and these flags only work with gcc/g++
and not with LD directly.
This commit is contained in:
Bastian Köcher 2017-08-04 18:50:23 +02:00
parent e84c717df6
commit 0053bf6d47

View file

@ -103,6 +103,8 @@ stdenv.mkDerivation {
preConfigure = ''
export LD_LIBRARY_PATH="$PWD/lib:$PWD/plugins/platforms:$LD_LIBRARY_PATH"
export MAKEFLAGS=-j$NIX_BUILD_CORES
# We need to set LD to CXX or otherwise we get nasty compile errors
export LD=$CXX
configureFlags+="\
-plugindir $out/$qtPluginPrefix \