Edward Robbins
2013-Jul-18 08:51 UTC
[Samba] Building with debug symbols and different optimisation levels
Hello, I would like to build samba at different optimisation levels with debug symbols, in order to test a static analysis tool I have developed. I have found the configure option "--enable-developer", which I presume enables debug symbols and sets optimisation to O0, however I would also like to be able to enable debug symbols and set the optimisation level to O2. I cannot find a way to do this in the build system (however, I am unfamiliar with waf). Is there a (even hacky) way to do this? Thanks, Ed
Edward Robbins
2013-Jul-18 10:54 UTC
[Samba] Building with debug symbols and different optimisation levels
Hello, I would like to build samba at different optimisation levels with debug symbols, in order to test a static analysis tool I have developed. I have found the configure option "--enable-developer", which I presume enables debug symbols and sets optimisation to O0, and "--enable-debug" (is the difference between these two options just the warning levels?), however I would also like to be able to enable debug symbols and set the optimisation level to O2. I've been searching but cannot find a way to do this in the build system, I can't even find where the optimisation level is set, however, I am unfamiliar with waf. Is there a (even hacky) way to do this? Thanks, Ed