Hi all,
to support circular dependencies i need to put "-Wl,--start-group" and "'-Wl,--end-group" around the objects to links in the linker command line.
I've added the "'-Wl,--end-group" in the "link_args" in the "executable" command, but i don't know how to add properly the "-Wl,--start-group", in the mean time I've changed manually the "build.ninja" file at the line:
command = /opt/altair/br_mips-2013.11/usr/bin/mips-linux-gcc $ARGS -o $out $in $LINK_ARGS $aliasing
=>
command = /opt/altair/br_mips-2013.11/usr/bin/mips-linux-gcc $ARGS -o $out -Wl,--start-group $in $LINK_ARGS $aliasing
What is the best way to add the "-Wl,--start-group" in the linker command line before the "$in" argument?
I know the best solution is to fix the circular dependency, i hope to fix them in the future, but right now i have to support them.
Thanks and best regards
Fabio Porcedda