diff options
author | Brent Cook <bcook@openbsd.org> | 2015-07-16 11:34:07 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2015-07-16 11:34:07 -0500 |
commit | b9291face3ec7c804b6171857f95594d12384706 (patch) | |
tree | 8f7e21142622805ef06aa9fa1000d6cd6965b637 /m4/disable-compiler-warnings.m4 | |
parent | ddeb740426716de91135def46d8408da9d730586 (diff) | |
download | portable-b9291face3ec7c804b6171857f95594d12384706.tar.gz portable-b9291face3ec7c804b6171857f95594d12384706.tar.bz2 portable-b9291face3ec7c804b6171857f95594d12384706.zip |
disable strict aliasing on AIX xlc and HP-UX aC++ compilers
Diffstat (limited to '')
-rw-r--r-- | m4/disable-compiler-warnings.m4 | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/m4/disable-compiler-warnings.m4 b/m4/disable-compiler-warnings.m4 index 9dae100..2792722 100644 --- a/m4/disable-compiler-warnings.m4 +++ b/m4/disable-compiler-warnings.m4 | |||
@@ -26,14 +26,4 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], | |||
26 | [AC_MSG_RESULT([no])] | 26 | [AC_MSG_RESULT([no])] |
27 | ) | 27 | ) |
28 | CFLAGS="$save_cflags $AM_CFLAGS" | 28 | CFLAGS="$save_cflags $AM_CFLAGS" |
29 | |||
30 | save_cflags="$CFLAGS" | ||
31 | CFLAGS=-fno-strict-aliasing | ||
32 | AC_MSG_CHECKING([whether CC supports -fno-strict-aliasing]) | ||
33 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], | ||
34 | [AC_MSG_RESULT([yes])] | ||
35 | [AM_CFLAGS=-fno-strict-aliasing], | ||
36 | [AC_MSG_RESULT([no])] | ||
37 | ) | ||
38 | CFLAGS="$save_cflags $AM_CFLAGS" | ||
39 | ]) | 29 | ]) |