summaryrefslogtreecommitdiff
path: root/lang/spidermonkey185/files/patch-configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'lang/spidermonkey185/files/patch-configure.in')
-rw-r--r--lang/spidermonkey185/files/patch-configure.in36
1 files changed, 36 insertions, 0 deletions
diff --git a/lang/spidermonkey185/files/patch-configure.in b/lang/spidermonkey185/files/patch-configure.in
new file mode 100644
index 000000000000..c8910057a423
--- /dev/null
+++ b/lang/spidermonkey185/files/patch-configure.in
@@ -0,0 +1,36 @@
+--- ./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"