The -O flag munging is relevant only if the jitter entropy (jent) is enabled (if I do not miss anything).
When jitter entropy support is disabled at the build time (--disable-jent-support), I would expect it should also disable the o flag munging (--disable-O-flag-munging) as it just confuses the linker and analysis tools that check what part of the binaries were built with what optimization modes.