diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-05-23 19:06:10 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-05-23 19:06:10 +0200 |
commit | b2b8bf37934087f8fb2a246316ecf9e91955ec57 (patch) | |
tree | 54426fb6229df8ee26041d7675993b3c2358baf8 | |
parent | 6af2316771841cd4d2770fae00d3d147aa11a5d9 (diff) |
Restrict `-fno-strict-aliasing' to the Linux drivers
* Makefile.am: Move `-fno-strict-aliasing'...
* linux/Makefrag.am: ... here.
-rw-r--r-- | Makefile.am | 4 | ||||
-rw-r--r-- | linux/Makefrag.am | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am index eb940cb..913db55 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 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 \ |