According to Ulrich Drepper paper, it is worth to pass -O1 command line option to GNU linker to perform final binary optimizations. Currently this relates at least symbol table optimization for shared libraries. The author also states that new linker version will be developed which will use advanced optimizations techniques. %optflags_linker -Wl,-O1 %optflags_default ... %optflags_linker ? --- ---
Lets test it first.
Do you suggest to set default LDFLAGS?
Or maybe just enable it in ld by default?
Если это работает корректно -- лучше установить по-умолчанию в ld.
Enabled by default in binutils-2.16.91.0.5-alt2 on Mon Jan 09 2006, nobody complained yet.