--- ./configure.in.orig 2011-04-01 06:08:36.000000000 +1100 +++ ./configure.in 2013-05-26 00:19:28.032315432 +1000 @@ -3378,7 +3378,8 @@ rm -f conftest.{c,S} ]) if test "$ac_cv_have_visibility_builtin_bug" = "no" -a \ - "$ac_cv_have_visibility_class_bug" = "no"; then + "$ac_cv_have_visibility_class_bug" = "no" -a \ + "$OS_ARCH" != "FreeBSD" ; then VISIBILITY_FLAGS='-I$(DIST)/system_wrappers_js -include $(topsrcdir)/config/gcc_hidden.h' WRAP_SYSTEM_INCLUDES=1 STL_FLAGS='-I$(DIST)/stl_wrappers' @@ -4656,6 +4657,9 @@ MOZ_ARG_HEADER(Individual module options dnl Setup default CPU arch for arm target case "$target_cpu" in + armv6*) + MOZ_ARM_ARCH=armv6 + ;; arm*) MOZ_ARM_ARCH=armv7 ;; @@ -4716,6 +4720,13 @@ elif test "$MOZ_ARM_ARCH" = "armv7"; the esac else case "$target_cpu" in + armv6*) + if test "$GNU_CC"; then + CFLAGS="$CFLAGS" + CXXFLAGS="$CXXFLAGS" + ASFLAGS="$ASFLAGS" + fi + ;; arm*) if test "$GNU_CC"; then CFLAGS="$CFLAGS -march=armv5te -mthumb-interwork -msoft-float"