summaryrefslogtreecommitdiff
path: root/linux/Makefrag.am
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-05-23 19:06:10 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-05-23 19:06:10 +0200
commitb2b8bf37934087f8fb2a246316ecf9e91955ec57 (patch)
tree54426fb6229df8ee26041d7675993b3c2358baf8 /linux/Makefrag.am
parent6af2316771841cd4d2770fae00d3d147aa11a5d9 (diff)
Restrict `-fno-strict-aliasing' to the Linux drivers
* Makefile.am: Move `-fno-strict-aliasing'... * linux/Makefrag.am: ... here.
Diffstat (limited to 'linux/Makefrag.am')
-rw-r--r--linux/Makefrag.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/Makefrag.am b/linux/Makefrag.am
index 0973f11..1b69010 100644
--- a/linux/Makefrag.am
+++ b/linux/Makefrag.am
@@ -36,6 +36,11 @@ liblinux_a_CPPFLAGS = $(AM_CPPFLAGS) \
# Because of the use of `extern inline' in some Linux header files without
# corresponding text segment definitions, we must always optimize.
liblinux_a_CFLAGS = -O2 $(AM_CFLAGS)
+
+# See <http://lists.gnu.org/archive/html/bug-hurd/2006-01/msg00148.html>.
+liblinux_a_CFLAGS += \
+ -fno-strict-aliasing
+
# TODO. Do we really need `-traditional'?
liblinux_a_CCASFLAGS = $(AM_CCASFLAGS) \
-D__ASSEMBLY__ -traditional \