Commit c56b308a authored by David Faure's avatar David Faure

Fix link error when llvm is in /usr but Qt isn't

LLVM_LIBDIR=/usr was making this code insert -Wl,-rpath,/usr/lib64
into the link line, which leads to link errors due to being
picked up from there rather than from where the rest of my self-built Qt is.
(Qt5Qml is an indirect dependency of the other libs on the link line)

Change-Id: I76164905ede416ba2fb895fda372c08633777f4f
Reviewed-by: default avatarNikita Baryshnikov <>
Reviewed-by: Christian Stenger's avatarChristian Stenger <>
Reviewed-by: Eike Ziller's avatarEike Ziller <>
parent cf3afe88
......@@ -16,5 +16,5 @@ SOURCES += clangbackendmain.cpp
unix {
!osx: QMAKE_LFLAGS += -Wl,-z,origin
!disable_external_rpath: QMAKE_LFLAGS += -Wl,-rpath,$$shell_quote($${LLVM_LIBDIR})
!contains(QMAKE_DEFAULT_LIBDIRS, $${LLVM_LIBDIR}):!disable_external_rpath: QMAKE_LFLAGS += -Wl,-rpath,$$shell_quote($${LLVM_LIBDIR})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment