diff --git a/linux-bore/PKGBUILD b/linux-bore/PKGBUILD index d549c9f7..b2e234cb 100644 --- a/linux-bore/PKGBUILD +++ b/linux-bore/PKGBUILD @@ -249,6 +249,11 @@ if [ -n "$_lrng_enable" ]; then source+=("${_patchsource}/misc/0001-lrng.patch") fi +# gcc specific flags +if [ "$_use_llvm_lto" = "none" ]; then + source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch") +else + export KBUILD_BUILD_HOST=cachyos export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILD index 4622bfaa..e4d248f0 100644 --- a/linux-cachyos-bore/PKGBUILD +++ b/linux-cachyos-bore/PKGBUILD @@ -249,6 +249,11 @@ if [ -n "$_lrng_enable" ]; then source+=("${_patchsource}/misc/0001-lrng.patch") fi +# gcc specific flags +if [ "$_use_llvm_lto" = "none" ]; then + source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch") +else + export KBUILD_BUILD_HOST=cachyos export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" diff --git a/linux-cachyos-eevdf/PKGBUILD b/linux-cachyos-eevdf/PKGBUILD index 317775ad..bb4993d2 100644 --- a/linux-cachyos-eevdf/PKGBUILD +++ b/linux-cachyos-eevdf/PKGBUILD @@ -248,6 +248,11 @@ if [ -n "$_lrng_enable" ]; then source+=("${_patchsource}/misc/0001-lrng.patch") fi +# gcc specific flags +if [ "$_use_llvm_lto" = "none" ]; then + source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch") +else + export KBUILD_BUILD_HOST=cachyos export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILD index b0c7e171..a11b2453 100644 --- a/linux-cachyos-hardened/PKGBUILD +++ b/linux-cachyos-hardened/PKGBUILD @@ -252,6 +252,11 @@ if [ -n "$_lrng_enable" ]; then source+=("${_patchsource}/misc/0001-lrng.patch") fi +# gcc specific flags +if [ "$_use_llvm_lto" = "none" ]; then + source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch") +else + export KBUILD_BUILD_HOST=cachyos export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" diff --git a/linux-cachyos-lts/PKGBUILD b/linux-cachyos-lts/PKGBUILD index d94c123a..e0446164 100644 --- a/linux-cachyos-lts/PKGBUILD +++ b/linux-cachyos-lts/PKGBUILD @@ -250,6 +250,11 @@ if [ -n "$_lrng_enable" ]; then source+=("${_patchsource}/misc/0001-lrng.patch") fi +# gcc specific flags +if [ "$_use_llvm_lto" = "none" ]; then + source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch") +else + export KBUILD_BUILD_HOST=cachyos export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILD index 4860c72f..d8ceed9a 100644 --- a/linux-cachyos-rc/PKGBUILD +++ b/linux-cachyos-rc/PKGBUILD @@ -248,6 +248,11 @@ if [ -n "$_lrng_enable" ]; then source+=("${_patchsource}/misc/0001-lrng.patch") fi +# gcc specific flags +if [ "$_use_llvm_lto" = "none" ]; then + source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch") +else + export KBUILD_BUILD_HOST=cachyos export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" diff --git a/linux-cachyos-rt-bore/PKGBUILD b/linux-cachyos-rt-bore/PKGBUILD index f5e45332..787823f9 100644 --- a/linux-cachyos-rt-bore/PKGBUILD +++ b/linux-cachyos-rt-bore/PKGBUILD @@ -248,6 +248,11 @@ if [ -n "$_lrng_enable" ]; then source+=("${_patchsource}/misc/0001-lrng.patch") fi +# gcc specific flags +if [ "$_use_llvm_lto" = "none" ]; then + source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch") +else + export KBUILD_BUILD_HOST=cachyos export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" diff --git a/linux-cachyos-rt/PKGBUILD b/linux-cachyos-rt/PKGBUILD index 23517d5c..61f0a62b 100644 --- a/linux-cachyos-rt/PKGBUILD +++ b/linux-cachyos-rt/PKGBUILD @@ -248,6 +248,11 @@ if [ -n "$_lrng_enable" ]; then source+=("${_patchsource}/misc/0001-lrng.patch") fi +# gcc specific flags +if [ "$_use_llvm_lto" = "none" ]; then + source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch") +else + export KBUILD_BUILD_HOST=cachyos export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" diff --git a/linux-cachyos-sched-ext/PKGBUILD b/linux-cachyos-sched-ext/PKGBUILD index 612efa10..6eb04553 100644 --- a/linux-cachyos-sched-ext/PKGBUILD +++ b/linux-cachyos-sched-ext/PKGBUILD @@ -248,6 +248,11 @@ if [ -n "$_lrng_enable" ]; then source+=("${_patchsource}/misc/0001-lrng.patch") fi +# gcc specific flags +if [ "$_use_llvm_lto" = "none" ]; then + source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch") +else + export KBUILD_BUILD_HOST=cachyos export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILD index fc600928..3fc1202e 100644 --- a/linux-cachyos/PKGBUILD +++ b/linux-cachyos/PKGBUILD @@ -248,6 +248,7 @@ if [ -n "$_lrng_enable" ]; then source+=("${_patchsource}/misc/0001-lrng.patch") fi +# gcc specific flags if [ "$_use_llvm_lto" = "none" ]; then source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch") else