summaryrefslogtreecommitdiff
path: root/lang/spidermonkey185/files/patch-configure.in
blob: c8910057a423e5680124514134674b516cbb9abd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"