What is the purpose of those command line options? Please help to decipher the meaning of the following command line:
-Wl,--start-group -lmy_lib -lyour_lib -lhis_lib -Wl,--end-group -ltheir_lib
Apparently it has something to do with linking, but the GNU manual is quiet what exactly grouping means.
It is for resolving circular dependences between several libraries (listed between
-(and-)).Citing Why does the order in which libraries are linked sometimes cause errors in GCC? or
man ldhttp://linux.die.net/man/1/ldSo, libraries inside the group can be searched for new symbols several time, and you need no ugly constructs like
-llib1 -llib2 -llib1PS archive means basically a static library (
*.afiles)