https://gist.github.com/natanbc/90f7c1e2bf0eb5507ad086672aaa3470
These flags appear to be causing the error