GNOME Bug 612402 - (hb-arm) HarfBuzz compilation fix for arm

With gcc on arm, request 8-bit structure alignment.
This commit is contained in:
Behdad Esfahbod 2011-04-27 15:10:12 -04:00
parent 39a840ae65
commit 5b7f38979f
1 changed files with 9 additions and 1 deletions

View File

@ -24,9 +24,17 @@ LT_INIT([win32-dll])
AC_CHECK_FUNCS(mprotect sysconf getpagesize) AC_CHECK_FUNCS(mprotect sysconf getpagesize)
AC_CHECK_HEADERS(unistd.h sys/mman.h) AC_CHECK_HEADERS(unistd.h sys/mman.h)
# Make sure we don't link to libstdc++
if test "x$GCC" = "xyes"; then if test "x$GCC" = "xyes"; then
# Make sure we don't link to libstdc++
CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions" CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"
case "$host" in
arm-*-*)
# Request byte alignment on arm
CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
;;
esac
fi fi
dnl ========================================================================== dnl ==========================================================================