From c236ae6575960189ac9d4245969aceef04acfffc Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 24 Jan 2020 16:47:05 +0200 Subject: Move compiler flags to meson.build from pkgbuild --- meson.build | 1 + 1 file changed, 1 insertion(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 5e50801..2e7ec72 100644 --- a/meson.build +++ b/meson.build @@ -31,6 +31,7 @@ add_project_arguments(cxx.get_supported_arguments([ '-ffunction-sections', # Place each function into its own section, better ASLR but larger executables '-fstack-protector-all', # Emit code to check for buffer overflows on all functions '-fstack-clash-protection', # Emit code to check for stack clash attacks + '-flto=4', '-mspeculative-load-hardening', # Spectre v1 mitigation -- cgit v1.2.1