This means it also needs to honor our flags, so patch them in as necessary.
This backports the relevant parts of: https://codereview.qt-project.org/#/c/82689/
See the README's in depends for documentation