aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/Makefile2
-rw-r--r--security/selinux/Makefile1
2 files changed, 3 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index c26c81e92..bbbc54b9f 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -1,6 +1,8 @@
#
# Makefile for the kernel security code
#
+CFLAGS_commoncap.o := -fno-unsafe-math-optimizations -fno-strict-aliasing
+CFLAGS_lsm_audit.o := -fno-unsafe-math-optimizations -fno-strict-aliasing
obj-$(CONFIG_KEYS) += keys/
subdir-$(CONFIG_SECURITY_SELINUX) += selinux
diff --git a/security/selinux/Makefile b/security/selinux/Makefile
index ad5cd76ec..1306e009f 100644
--- a/security/selinux/Makefile
+++ b/security/selinux/Makefile
@@ -1,6 +1,7 @@
#
# Makefile for building the SELinux module as part of the kernel tree.
#
+CFLAGS_KERNEL := -fno-unsafe-math-optimizations -fno-strict-aliasing
obj-$(CONFIG_SECURITY_SELINUX) := selinux.o