If I am to statically link a certain library to my application, As far as I know, the linker could optimize in a way to put only the parts that had been used from the library while generating the final executable. Is there a way to turn this off upon compilation, maybe using a compiler flag or any other particular method, if I want to generate an executable containing all the parts of the library instead of the portions that I had actually used?
↧