Compare commits

..

2 Commits

Author SHA1 Message Date
exu
ed06d7ca3e Simplify pacman config 2024-05-19 16:27:58 +02:00
exu
dcf1066217 Add makepkg settings as separate file 2024-05-19 16:27:46 +02:00
3 changed files with 18 additions and 7 deletions

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:

View File

View File

@ -261,13 +261,6 @@ sudo cp -r "$tempdir/arch-config/etc" /
echo Copied folders
# NOTE Distro specific stuff
# TODO simplify for Arch only
distro=$(cat /etc/*-release | grep "^ID=")
if [ "$distro" == "ID=arch" ]; then
sudo mv /etc/arch-pacman.conf /etc/pacman.conf
fi
#copy usr stuff
sudo cp -r "$tempdir/arch-config/usr" /