From 9aa4e1d96095c5bde62aa541a6b3aa48110cc5b0 Mon Sep 17 00:00:00 2001 From: kinichiro Date: Tue, 4 Aug 2015 19:08:42 +0900 Subject: disable strict aliasing on HP-UX C/aC++ compiler to disable strict aliasing on HP-UX C/aC++, `+Otype_safety=off` is right. `+Otype_safety=strong` forces ANSI aliasing. --- m4/check-os-options.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/check-os-options.m4 b/m4/check-os-options.m4 index d1695f6..4f94897 100644 --- a/m4/check-os-options.m4 +++ b/m4/check-os-options.m4 @@ -28,7 +28,7 @@ case $host_os in if test "`echo $CC | cut -d ' ' -f 1`" = "gcc" ; then CFLAGS="$CFLAGS -mlp64" else - CFLAGS="-g -O2 +DD64 +Otype_safety=strong $USER_CFLAGS" + CFLAGS="-g -O2 +DD64 +Otype_safety=off $USER_CFLAGS" fi CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D__STRICT_ALIGNMENT" AC_SUBST([PLATFORM_LDADD], ['-lpthread']) -- cgit v1.2.3-55-g6feb