1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/lang/spidermonkey185/files/patch-configure.in
Koop Mast aebff78ff3 Add patches to fix the build on armv6.
PR:		212462
Submitted by:	mikael.urankar@gmail.com
Approved by:	maintainer (koobs@)
2017-06-05 12:36:13 +00:00

37 lines
1.2 KiB
Plaintext

--- ./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"