summaryrefslogtreecommitdiff
path: root/share/qbs/modules/cpp/gcc.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/qbs/modules/cpp/gcc.js')
-rw-r--r--share/qbs/modules/cpp/gcc.js3
1 files changed, 3 insertions, 0 deletions
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)