1 host_linux_triple = config.target_triple.split("-")[0] + "-linux"
2 common_linker_flags = "-fuse-ld=lld -Wl,--unresolved-symbols=ignore-all"
3 flags = f"--target={host_linux_triple} {common_linker_flags}"
5 config.substitutions.insert(0, ("%cflags", f"%cflags {flags}"))
6 config.substitutions.insert(0, ("%cxxflags", f"%cxxflags {flags}"))