I have been using
as options to gcc when compiling a certain library that I statically link to my app, so that the individual functions within object files are treated as separate linkable objects which further reduces my target executable size. I needed to use this facility of gcc since this library is not cleanly == modularly written so that potentially independent units are placed in separate source files.Qt Code:
-fdata-sections -ffunction-sections -Wl,--gc-sectionsTo copy to clipboard, switch view to plain text mode
I wonder if it would be possible to use these options when building the static Qt 4 libraries so that any functions I don't use don't end up wasting space in my executable. If yes, then where can I specify these options?
Bookmarks