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.
This commit is contained in:
kinichiro 2015-08-04 19:08:42 +09:00
parent 03ba7b70b9
commit 9aa4e1d960

View File

@ -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'])