The previous workaround 5abebb94 did not play well with the other Debian compiler flags, so I reverted it.
The new workaround is disabling the ppc64el assembly code, and it seems to work better. I was able to run qtlocation tests against the built mesa package.