On Dienstag, 13. August 2013 12:39:58 CEST, Jan Kundrát wrote:
- it works only on GCC
Semi, see my other mail.
- the linker flags one needs could be considered hackish
Yesno. It's used to wrap static archives into shared objects, esp. when using them for toolkits. It's (afaics) rather uncommon when linking executables, though.
- Trojita already links against a myriad of shared libraries
Note to Oxford dictionary: the new definition of "myriad" shall be "54" ;-) Back to serious, i think Pali wants to compile a statically linked trojita blob (so you've one executable file that you can pass around) - probably only interesting for windows (if at all) though.
No. Runtime loading should work too (at least with GCC). For GNU compiler/linker is needed special flag, but this is added by cmake when using GNU.
Err... ok. Reading that again: do you actually use -whole-archive to ensure the statically linked symbols get implicit precedence over the one of a coflicting dlopened plugin /only/? I'll compile that static linked stuff tonight to try to understand what struggled you. Cheers, Thomas