35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
def profile():
|
|
arch = "x86_64"
|
|
libc = "glibc"
|
|
triple = f"{arch}-orchid-linux-gnu"
|
|
|
|
host_cflags = "-O2 -pipe"
|
|
host_cxxflags = host_cflags
|
|
host_ldflags = "-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
|
|
|
|
target_flags = " -march=x86-64-v3 -mtune=generic -fstack-clash-protection -fstack-protector-strong -fcf-protection"
|
|
cflags = host_cflags + target_flags
|
|
cxxflags = cflags
|
|
ldflags = host_ldflags + " -Wl,-z,now -Wl,-z,pack-relative-relocs"
|
|
|
|
return {
|
|
"arch": arch,
|
|
"libc": libc,
|
|
"triple": triple,
|
|
"container_image": "localhost/orchid-builder:latest",
|
|
"host_cflags": host_cflags,
|
|
"host_cxxflags": host_cxxflags,
|
|
"host_ldflags": host_ldflags,
|
|
"cflags": cflags,
|
|
"cxxflags": cxxflags,
|
|
"ldflags": ldflags,
|
|
"prefix": "/usr",
|
|
"bindir": "/usr/bin",
|
|
"sbindir": "/usr/bin",
|
|
"libdir": "/usr/lib",
|
|
"libexecdir": "/usr/libexec",
|
|
"includedir": "/usr/include",
|
|
"sysconfdir": "/etc",
|
|
"localstatedir": "/var",
|
|
}
|