If a standard system install of Qt4 is used, then Darwin-g++.gmk sets QTHOME correctly to /Library/Frameworks on line 93. However, on line 116 the $(shell ) call that sets QT_AS_FRAMEWORK will only be set if $(QTHOME)/lib/QtCore.framework exists. Consequently a system framework install will not have QT_AS_FRAMEWORK set as here $(QTHOME)/QtCore.framework should be checked. This leads to the incorrect setting of QTLIBS and GLQTLIBS for a standard system framework install of Qt4. A simple fix would be to test both $(QTHOME)/lib/QtCore.framework and $(QTHOME)/QtCore.framework. Cheers, Ben.
Correction is now implemented in tag "config-V09-05-02".