diff options
author | Brent Cook <bcook@openbsd.org> | 2014-12-27 16:34:02 -0600 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2014-12-27 16:34:02 -0600 |
commit | 23c90228ac36f6afeb4fbeb5b4891dad120fec4b (patch) | |
tree | f7c8591db3b170b5aa8245e06896ae7161342447 | |
parent | 04158cd40e184e2325a7a0e5fef232cce038cc4b (diff) | |
download | portable-23c90228ac36f6afeb4fbeb5b4891dad120fec4b.tar.gz portable-23c90228ac36f6afeb4fbeb5b4891dad120fec4b.tar.bz2 portable-23c90228ac36f6afeb4fbeb5b4891dad120fec4b.zip |
enable __STRICT_ALIGNMENT on sparc
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
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 | |||
45 | *) ;; | 45 | *) ;; |
46 | esac | 46 | esac |
47 | 47 | ||
48 | case $host_cpu in | ||
49 | *sparc*) | ||
50 | CFLAGS="$CFLAGS -D__STRICT_ALIGNMENT" | ||
51 | ;; | ||
52 | esac | ||
53 | |||
48 | AM_CONDITIONAL([HOST_DARWIN], [test x$HOST_OS = xdarwin]) | 54 | AM_CONDITIONAL([HOST_DARWIN], [test x$HOST_OS = xdarwin]) |
49 | AM_CONDITIONAL([HOST_FREEBSD], [test x$HOST_OS = xfreebsd]) | 55 | AM_CONDITIONAL([HOST_FREEBSD], [test x$HOST_OS = xfreebsd]) |
50 | AM_CONDITIONAL([HOST_LINUX], [test x$HOST_OS = xlinux]) | 56 | AM_CONDITIONAL([HOST_LINUX], [test x$HOST_OS = xlinux]) |