depends: qt: Fix {C{,XX},LD}FLAGS pickup
Summary:
Backport of core PR16837.
Depends on D5650.
Test Plan: Run the Gitian builds.
Reviewers: #bitcoin_abc, deadalnix
Reviewed By: #bitcoin_abc, deadalnix
Differential Revision: https://reviews.bitcoinabc.org/D5656