qt4: unset LD

Commit 093cc00cdd sets the `LD' environment
variable by default, interfering with the Makefile which uses gcc for linking.
This commit is contained in:
Thomas Tuegel 2017-07-21 12:15:09 -05:00
parent fe800447c2
commit 9aa4f09008
No known key found for this signature in database
GPG Key ID: 22CBF5249D4B4D59

View File

@ -114,6 +114,7 @@ stdenv.mkDerivation rec {
-datadir $out/share/${name}
-translationdir $out/share/${name}/translations
"
unset LD # Makefile uses gcc for linking; setting LD interferes
'' + optionalString stdenv.cc.isClang ''
sed -i 's/QMAKE_CC = gcc/QMAKE_CC = clang/' mkspecs/common/g++-base.conf
sed -i 's/QMAKE_CXX = g++/QMAKE_CXX = clang++/' mkspecs/common/g++-base.conf