On 10/29/2015 09:09 AM, Tim Hutt wrote:
Hi,
Currently in my QBS file for an mBed compile I have this:
cpp.staticLibraries:[
"stdc++",
"supc++",
"m",
"gcc",
"c",//libcreallymustbeincludedtwice,andbeforenosys.
"c",
"nosys",
]
It took me a while to work out that I needed libc twice (GCC is mad),
Twice right after another? Are you sure? That sounds like a linker bug then.
and I suspect the correct way to fix this is through the use of the
linker's --start-group and --end-group options.
Have you verified on the command line that this actually helps?
Is there any way to group static libraries using --start-group and
--end-group in QBS?
No, see https://bugreports.qt.io/browse/QBS-701.
You could try working around this using cpp.linkerFlags and putting the
library options there explicitly.
Christian
_______________________________________________
QBS mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qbs