Add makepkg settings as separate file

This commit is contained in:
exu 2024-05-19 16:27:46 +02:00
parent ab9dc96d44
commit dcf1066217

View File

@ -0,0 +1,18 @@
#!/hint/bash
# shellcheck disable=2034
# build for native architecture
CFLAGS="-march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions \
-Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \
-fstack-clash-protection -fcf-protection \
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
RUSTFLAGS="-C opt-level=3 -C target-cpu=native"
# use all cores
MAKEFLAGS="-j$(nproc)"
# build in RAM
BUILDDIR=/tmp/makepkg
# vim: set ft=sh ts=2 sw=2 et: