From 59bbb6ffe0a4529b7a87538550b63bb63563613b Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Sat, 17 Jun 2017 09:31:00 -0700 Subject: Add a comment warning about argument order in linkerFlags due to QCC Amends eb2e67a Change-Id: I902b49f17917494e6b8e166c9bdae98ddde7f142 Reviewed-by: Christian Kandeler --- share/qbs/modules/cpp/gcc.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/qbs/modules/cpp/gcc.js b/share/qbs/modules/cpp/gcc.js index 78b534298..7e4071f1c 100644 --- a/share/qbs/modules/cpp/gcc.js +++ b/share/qbs/modules/cpp/gcc.js @@ -350,6 +350,9 @@ function linkerFlags(project, product, inputs, output, linkerPath) { product, inputs, product.cpp.platformLinkerFlags)); args = args.concat(escapeLinkerFlags(product, inputs, product.cpp.linkerFlags)); + // Note: due to the QCC response files hack in prepareLinker(), at least one object file or + // library file must follow the output file path so that QCC has something to process before + // sending the rest of the arguments through the response file. args.push("-o", output.filePath); if (inputs.obj) -- cgit v1.2.3