When to use certain optimizations such as -fwhole-program and -fprofile-generate with several shared libraries
- by James
Probably a simple answer; I get quite confused with the language used in the GCC documentation for some of these flags!
Anyway, I have three libraries and a programme which uses all these three. I compile each of my libraries seperately with individual (potentially) different sets of warning flags. However, I compile all three libraries with the…