def check_qt(target_config):
    """ Check the Qt installation.  target_config is the target configuration.
    """
    if target_config.qmake_spec == 'win32-g++':
        target_config.qmake_variables.append('QMAKE_CFLAGS += -mstackrealign')
        target_config.qmake_variables.append('QMAKE_CXXFLAGS += -mstackrealign'
            )
