This is an alternative to #19751 that fixes the build without requiring splitting out libpng. This patch can be dropped once we are building qt 5.12.0 or later.
One of the [concerns posted in #19751](/bitcoin-bitcoin/19751/#issuecomment-675455993) was:
the one bundled with Qt is at best a slower “bare minimum”.
However for our usage, I don’t think the performance of libpng is a concern. If it is, I’d like to see some numbers/justification as to why we should be worried about it.
This patch should be enough to unblock PowerPC binaries (combined with other changes) for 0.21.0, and for 0.22.0, when we switch to qt 5.15.x in depends, we should be able to drop it.
Related upstream issue: https://bugreports.qt.io/browse/QTBUG-66388.