From 23c90228ac36f6afeb4fbeb5b4891dad120fec4b Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sat, 27 Dec 2014 16:34:02 -0600 Subject: [PATCH] enable __STRICT_ALIGNMENT on sparc --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index bdb015b..d5382a9 100644 --- a/configure.ac +++ b/configure.ac @@ -45,6 +45,12 @@ case $host_os in *) ;; esac +case $host_cpu in + *sparc*) + CFLAGS="$CFLAGS -D__STRICT_ALIGNMENT" + ;; +esac + AM_CONDITIONAL([HOST_DARWIN], [test x$HOST_OS = xdarwin]) AM_CONDITIONAL([HOST_FREEBSD], [test x$HOST_OS = xfreebsd]) AM_CONDITIONAL([HOST_LINUX], [test x$HOST_OS = xlinux])