From 5cc3105807a7f1868b067e5d9757acab0a2bb8e8 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Thu, 3 Jun 2021 16:10:18 +0200 Subject: [PATCH] Move resource object files to the beginning of linker line in .prl files Move collected resource objects to the beginning of the linker line to prevent order-related issues. Fixes: QTBUG-92250 Change-Id: Ia046f2820feb693bfadc2b60e07fa001638d4d7b Reviewed-by: Alexandru Croitor --- cmake/QtFinishPrlFile.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/QtFinishPrlFile.cmake b/cmake/QtFinishPrlFile.cmake index 31936dd74ee..a932f2f9882 100644 --- a/cmake/QtFinishPrlFile.cmake +++ b/cmake/QtFinishPrlFile.cmake @@ -73,7 +73,7 @@ foreach(line ${lines}) endif() endforeach() if(rcc_objects) - list(APPEND adjusted_libs ${rcc_objects}) + list(PREPEND adjusted_libs ${rcc_objects}) endif() list(JOIN adjusted_libs " " adjusted_libs_for_qmake) string(APPEND content "QMAKE_PRL_LIBS = ${adjusted_libs_for_qmake}\n")