From 9576d5ad5184bb986f30faa8af8cb791da062459 Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Thu, 10 Oct 2019 18:47:27 +0300 Subject: baremetal: Use 'sdar' utility to create the library on SDCC The 'sdcclib' utility is deprecated since SDCC v2.9.0 (which was released in 2010 year). So, we need to use the 'sdar' utility instead. Change-Id: I6a9f7f4d4d93ad3a2f63b75827fce84a011945d2 Reviewed-by: Christian Kandeler --- share/qbs/modules/cpp/sdcc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/qbs/modules/cpp/sdcc.js b/share/qbs/modules/cpp/sdcc.js index 02b40bd47..5cd5fa960 100644 --- a/share/qbs/modules/cpp/sdcc.js +++ b/share/qbs/modules/cpp/sdcc.js @@ -67,7 +67,7 @@ function linkerName(qbs) { } function archiverName(qbs) { - return "sdcclib"; + return "sdar"; } function targetArchitectureFlag(architecture) { @@ -485,7 +485,7 @@ function linkerFlags(project, product, input, outputs) { } function archiverFlags(project, product, input, outputs) { - var args = []; + var args = ["-rc"]; args.push(outputs.staticlibrary[0].filePath); if (inputs.obj) args = args.concat(inputs.obj.map(function(obj) { return obj.filePath })); -- cgit v1.2.3