archlinux / etc /makepkg.conf
Orion-zhen's picture
Create makepkg.conf
82163b6 verified
raw
history blame contribute delete
657 Bytes
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
COMPRESSZST=(zstd -c -T0 -0 --rsyncable -)
CFLAGS="-march=native -Os -flto -fopenmp -ffunction-sections -fdata-sections -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fomit-frame-pointer"
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
LDFLAGS="-fuse-ld=mold -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -Wl,--gc-sections"
MAKEFLAGS="-j$(nproc)"
RUSTFLAGS="-C opt-level=s -C codegen-units=1 -C debuginfo=0 -C overflow-checks=on -C link-arg=-fuse-ld=mold"