Spaces:
Running
Running
Create makepkg.conf
Browse files- etc/makepkg.conf +8 -0
etc/makepkg.conf
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
|
2 |
+
COMPRESSZST=(zstd -c -T0 -0 --rsyncable -)
|
3 |
+
|
4 |
+
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"
|
5 |
+
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
|
6 |
+
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"
|
7 |
+
MAKEFLAGS="-j$(nproc)"
|
8 |
+
RUSTFLAGS="-C opt-level=s -C codegen-units=1 -C debuginfo=0 -C overflow-checks=on -C link-arg=-fuse-ld=mold"
|