Skip to content

Commit

Permalink
Fix LTO&kCFI (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shendisx authored Jan 20, 2024
1 parent a4622bb commit 1bfdfc7
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions linux-bore/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ if [ -n "$_lrng_enable" ]; then
source+=("${_patchsource}/misc/0001-lrng.patch")
fi

# gcc specific flags
if [ "$_use_llvm_lto" = "none" ]; then
# GCC specific flags
if [[ "$_use_llvm_lto" = "none" ]] && [[ -z "$_use_kcfi" ]]; then
source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch")
fi

Expand Down
4 changes: 2 additions & 2 deletions linux-cachyos-bore/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ if [ -n "$_lrng_enable" ]; then
source+=("${_patchsource}/misc/0001-lrng.patch")
fi

# gcc specific flags
if [ "$_use_llvm_lto" = "none" ]; then
# GCC specific flags
if [[ "$_use_llvm_lto" = "none" ]] && [[ -z "$_use_kcfi" ]]; then
source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch")
fi

Expand Down
4 changes: 2 additions & 2 deletions linux-cachyos-eevdf/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ if [ -n "$_lrng_enable" ]; then
source+=("${_patchsource}/misc/0001-lrng.patch")
fi

# gcc specific flags
if [ "$_use_llvm_lto" = "none" ]; then
# GCC specific flags
if [[ "$_use_llvm_lto" = "none" ]] && [[ -z "$_use_kcfi" ]]; then
source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch")
fi

Expand Down
4 changes: 2 additions & 2 deletions linux-cachyos-hardened/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ if [ -n "$_lrng_enable" ]; then
source+=("${_patchsource}/misc/0001-lrng.patch")
fi

# gcc specific flags
if [ "$_use_llvm_lto" = "none" ]; then
# GCC specific flags
if [[ "$_use_llvm_lto" = "none" ]] && [[ -z "$_use_kcfi" ]]; then
source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch")
fi

Expand Down
4 changes: 2 additions & 2 deletions linux-cachyos-lts/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ if [ -n "$_lrng_enable" ]; then
source+=("${_patchsource}/misc/0001-lrng.patch")
fi

# gcc specific flags
if [ "$_use_llvm_lto" = "none" ]; then
# GCC specific flags
if [[ "$_use_llvm_lto" = "none" ]] && [[ -z "$_use_kcfi" ]]; then
source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch")
fi

Expand Down
4 changes: 2 additions & 2 deletions linux-cachyos-rc/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ if [ -n "$_lrng_enable" ]; then
source+=("${_patchsource}/misc/0001-lrng.patch")
fi

# gcc specific flags
if [ "$_use_llvm_lto" = "none" ]; then
# GCC specific flags
if [[ "$_use_llvm_lto" = "none" ]] && [[ -z "$_use_kcfi" ]]; then
source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch")
fi

Expand Down
4 changes: 2 additions & 2 deletions linux-cachyos-rt-bore/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ if [ -n "$_lrng_enable" ]; then
source+=("${_patchsource}/misc/0001-lrng.patch")
fi

# gcc specific flags
if [ "$_use_llvm_lto" = "none" ]; then
# GCC specific flags
if [[ "$_use_llvm_lto" = "none" ]] && [[ -z "$_use_kcfi" ]]; then
source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch")
fi

Expand Down
4 changes: 2 additions & 2 deletions linux-cachyos-rt/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ if [ -n "$_lrng_enable" ]; then
source+=("${_patchsource}/misc/0001-lrng.patch")
fi

# gcc specific flags
if [ "$_use_llvm_lto" = "none" ]; then
# GCC specific flags
if [[ "$_use_llvm_lto" = "none" ]] && [[ -z "$_use_kcfi" ]]; then
source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch")
fi

Expand Down
4 changes: 2 additions & 2 deletions linux-cachyos-sched-ext/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ if [ -n "$_lrng_enable" ]; then
source+=("${_patchsource}/misc/0001-lrng.patch")
fi

# gcc specific flags
if [ "$_use_llvm_lto" = "none" ]; then
# GCC specific flags
if [[ "$_use_llvm_lto" = "none" ]] && [[ -z "$_use_kcfi" ]]; then
source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch")
fi

Expand Down
4 changes: 2 additions & 2 deletions linux-cachyos/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ if [ -n "$_lrng_enable" ]; then
source+=("${_patchsource}/misc/0001-lrng.patch")
fi

# gcc specific flags
if [ "$_use_llvm_lto" = "none" ]; then
# GCC specific flags
if [[ "$_use_llvm_lto" = "none" ]] && [[ -z "$_use_kcfi" ]]; then
source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch")
fi

Expand Down

0 comments on commit 1bfdfc7

Please sign in to comment.