From 7d948b0c5ddba598b74cba3bbfe5275d16a80e10 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 3 Dec 2021 14:15:01 +0100 Subject: [PATCH] Do not link packages against libGLX and libOpenGL Work around QTBUG-89754 Fixes: QTCREATORBUG-26652 Change-Id: I9fb7ba2127a93460184154a9eb2d4c053f8fc22d Reviewed-by: Reviewed-by: Alexandru Croitor --- scripts/build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/build.py b/scripts/build.py index 776914175c1..e723f101b34 100755 --- a/scripts/build.py +++ b/scripts/build.py @@ -146,6 +146,10 @@ def common_cmake_arguments(args): pch_option = 'ON' if args.with_pch else 'OFF' cmake_args += ['-DBUILD_WITH_PCH=' + pch_option] + # work around QTBUG-89754 + # Qt otherwise adds dependencies on libGLX and libOpenGL + cmake_args += ['-DOpenGL_GL_PREFERENCE=LEGACY'] + return cmake_args def build_qtcreator(args, paths):