GNOME Bug 612402 - (hb-arm) HarfBuzz compilation fix for arm
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 27 Apr 2011 19:10:12 +0000 (15:10 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 27 Apr 2011 19:10:12 +0000 (15:10 -0400)
With gcc on arm, request 8-bit structure alignment.

configure.ac

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