Fix #16391
With this PR for macOS target, building depends
with DEBUG=1
does not cause a linker error for Qt static plugins on the following configure
script run.
Qt docs refs:
- https://doc.qt.io/qt-5/debug.html#debugging-in-macos-and-xcode
- https://doc.qt.io/qt-5/deployment-plugins.html#debugging-plugins
- https://doc.qt.io/qt-5/qmake-variable-reference.html#config
The obvious downside is the increased compilation time for macOS targets with DEBUG=1
.