]> git.ipfire.org Git - people/stevee/pakfire.git/blobdiff - macros/cflags.macro
macros: Use CET on x86_64
[people/stevee/pakfire.git] / macros / cflags.macro
index ad41dc19ec12dadc4c5ea7d910d200c02c5dcc42..b8b1e51bdde4579108911cc4278076f2fa608c98 100644 (file)
@@ -41,6 +41,9 @@ build
        # Arch: x86_64
        CFLAGS_x86_64 = -m64 -march=x86-64-v2 -mtune=generic
 
+       # Enable Control Flow Technology (CET)
+       CFLAGS_x86_64 += -fcf-protection=full
+
        # Arch: aarch64
        CFLAGS_aarch64 = -mbranch-protection=standard