updated makepkg configuration for arch builder
All checks were successful
CI / Build arch-builder docker images (push) Successful in 27m40s

This commit is contained in:
2024-12-24 15:30:26 +08:00
parent 6fa839a908
commit 5e5988e03a
13 changed files with 246 additions and 59 deletions

View File

@@ -42,7 +42,10 @@ CFLAGS="-march=znver1 -mtune=znver1 -O3 -pipe -fno-plt -fexceptions \
-Wformat -Werror=format-security \
-fstack-clash-protection -fcf-protection"
CXXFLAGS="$CFLAGS"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
-Wl,-z,pack-relative-relocs"
LTOFLAGS="-flto=auto"
#RUSTFLAGS="-C opt-level=2"
#-- Make Flags: change this for DistCC/SMP systems
MAKEFLAGS="-j4"
@@ -90,7 +93,7 @@ BUILDENV=(!distcc color ccache check !sign)
#-- purge: Remove files specified by PURGE_TARGETS
#-- debug: Add debugging flags as specified in DEBUG_* variables
#
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug)
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
INTEGRITY_CHECK=(md5)
@@ -134,8 +137,8 @@ DBGSRCDIR="/usr/src/debug"
#
COMPRESSGZ=(gzip -c -f -n)
COMPRESSBZ2=(bzip2 -c -f)
COMPRESSXZ=(xz -c -z -)
COMPRESSZST=(zstd -c -z -q -)
COMPRESSXZ=(xz -9 -c -z -)
COMPRESSZST=(zstd -14 -c -T0 -)
COMPRESSLRZ=(lrzip -q)
COMPRESSLZO=(lzop -q)
COMPRESSZ=(compress -c -f)
@@ -146,5 +149,5 @@ COMPRESSLZ=(lzip -c -f)
# EXTENSION DEFAULTS
#########################################################################
#
PKGEXT='.pkg.tar.lzo'
PKGEXT='.pkg.tar.zst'
SRCEXT='.src.tar.gz'