Conversation
Adding this custom flags meant to inject tight optimization, full static linking, and control over visibility for a smaller, faster, hardened binary. Also it makes nmap binary from 20+Mb original to ~8Mb in space
|
Hello! Thanks, I really appreciate the input! I'll have a look at this in the next few days! |
|
First of all thanks again for the input. I'm interested in the idea of making the executable smaller. It seems that most of the optimization regarding space are performed by Android Studio when bundling the application. I can verify the reduced size from 20mb to 8mb in the output of the nmap compilation, however even without these optimization the final size of the binary in the app bundle is 8.9mb, while with your optimization is 8.3mb. So this is less critical than it seemed initially. Also I think that some flags are redundant, for example the I would like to keep it as simple as possible to avoid possible compilation issues in the future and reduce maintenance time (if, for example, the official makefile changes). |
Adding this custom flags meant to inject tight optimization, full static linking, and control over visibility for a smaller, faster, hardened binary.
Also it makes nmap binary from 20+Mb original to ~8Mb in space