Negative. See below.
I am aware of that. If libfoo.a contains goo.o and boo.o and the program doo which links to libfoo.a uses only what goo.o provides, then boo.o is not linked into doo.Static libs are just an archive of functions and only the ones really used will be linked.
But if there are many functions inside goo.o and the target doo uses only a few of them, the linker would add into the target even the unused functions. This is what I am trying to avoid. With the options I'm talking about, it won't add in the unused functions. man:gcc and man:ld confirm this statement.
Hey, I let ld worry about that. I'm not going to tell it - strip this out, don't strip that out.The problem with Qt is that "many things depend on many other things", so it's really really hard to strip away something that is implemented in the same module as something else.
Now my question remains: where can I give such options to the compiler when using qmake.
Bookmarks