def profile(base): arch = "x86_64" libc = "musl" target_flags = ( "-march=x86-64-v3 -mtune=generic -fstack-clash-protection " "-fstack-protector-strong -fcf-protection" ) return Profile( arch=arch, triple=f"{arch}-orchid-linux-{libc}", options={ "libc": libc, # Target flags build on the base host flags. "cflags": f"{base['host_cflags']} {target_flags}", "cxxflags": f"{base['host_cflags']} {target_flags}", "ldflags": f"{base['host_ldflags']} -Wl,-z,now -Wl,-z,pack-relative-relocs", }, )