@staticmethod
def _get_scanner_ldflags(ldflags):
    """g-ir-scanner only accepts -L/-l; must ignore -F and other linker flags"""
    for f in ldflags:
        if f.startswith(('-L', '-l', '--extra-library')):
            yield f
