def _get_scanner_ldflags(ldflags: T.Iterable[str]) -> tuple[list[str], list[str]]:
        'g-ir-scanner only accepts -L/-l; must ignore -F and other linker flags'
        return (
            [f for f in ldflags if f.startswith(('-L', '-l', '--extra-library'))],
            [f for f in ldflags if f.startswith(('-Wl,-rpath,'))],
        )
g-ir-scanner only accepts -L/-l; must ignore -F and other linker flags
mesonbuild/modules/gnome.py