Skip to content

Commit

Permalink
fcf-protection only available for x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarco76 committed Nov 21, 2024
1 parent 4d07685 commit ae7b3c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pki.spec
Original file line number Diff line number Diff line change
Expand Up @@ -1273,8 +1273,10 @@ CXX_FLAGS="$CXX_FLAGS -g -fPIE -pie"
# https://sourceware.org/annobin/annobin.html/Test-gaps.html
C_FLAGS="$C_FLAGS -fplugin=annobin"

%ifarch x86_64
# https://sourceware.org/annobin/annobin.html/Test-cf-protection.html
C_FLAGS="$C_FLAGS -fcf-protection=full"
%endif

# https://sourceware.org/annobin/annobin.html/Test-optimization.html
C_FLAGS="$C_FLAGS -O2"
Expand Down

0 comments on commit ae7b3c2

Please sign in to comment.