summaryrefslogtreecommitdiff
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
parent6af2316771841cd4d2770fae00d3d147aa11a5d9 (diff)
Restrict `-fno-strict-aliasing' to the Linux drivers
* Makefile.am: Move `-fno-strict-aliasing'... * linux/Makefrag.am: ... here.
-rw-r--r--Makefile.am4
-rw-r--r--linux/Makefrag.am5
2 files changed, 5 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index eb940cbb..913db55e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -59,10 +59,6 @@ AM_CFLAGS += \
AM_CFLAGS += \
-Wall
-# See <http://lists.gnu.org/archive/html/bug-hurd/2006-01/msg00148.html>.
-AM_CFLAGS += \
- -fno-strict-aliasing
-
# We need the GNU-style inline
AM_CFLAGS += \
-fgnu89-inline
diff --git a/linux/Makefrag.am b/linux/Makefrag.am
index 0973f11c..1b690108 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 \