Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22066

Including all the library statically instead of parts of the library upon linking/compilation

$
0
0

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?


Viewing all articles
Browse latest Browse all 22066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>