2018-07-30 14:23:11 +02:00
|
|
|
$NetBSD: patch-as,v 1.2 2018/07/30 12:23:11 jmcneill Exp $
|
Import firefox52-52.1.0 as www/firefox52.
Mozilla Firefox is a free, open-source and cross-platform web browser
for Windows, Linux, MacOS X and many other operating systems.
It is fast and easy to use, and offers many advantages over other web
browsers, such as tabbed browsing and the ability to block pop-up
windows.
Firefox also offers excellent bookmark and history management, and it
can be extended by developers using industry standards such as XML,
CSS, JavaScript, C++, etc. Many extensions are available.
2017-04-27 03:55:57 +02:00
|
|
|
|
|
|
|
* Treat DragonFly like FreeBSD.
|
|
|
|
* Add system ICU support
|
2018-07-30 14:23:11 +02:00
|
|
|
* Enable ARM64 JIT
|
Import firefox52-52.1.0 as www/firefox52.
Mozilla Firefox is a free, open-source and cross-platform web browser
for Windows, Linux, MacOS X and many other operating systems.
It is fast and easy to use, and offers many advantages over other web
browsers, such as tabbed browsing and the ability to block pop-up
windows.
Firefox also offers excellent bookmark and history management, and it
can be extended by developers using industry standards such as XML,
CSS, JavaScript, C++, etc. Many extensions are available.
2017-04-27 03:55:57 +02:00
|
|
|
|
2018-07-30 14:23:11 +02:00
|
|
|
--- js/src/old-configure.in.orig 2017-04-11 02:13:16.000000000 +0000
|
Import firefox52-52.1.0 as www/firefox52.
Mozilla Firefox is a free, open-source and cross-platform web browser
for Windows, Linux, MacOS X and many other operating systems.
It is fast and easy to use, and offers many advantages over other web
browsers, such as tabbed browsing and the ability to block pop-up
windows.
Firefox also offers excellent bookmark and history management, and it
can be extended by developers using industry standards such as XML,
CSS, JavaScript, C++, etc. Many extensions are available.
2017-04-27 03:55:57 +02:00
|
|
|
+++ js/src/old-configure.in
|
|
|
|
@@ -140,6 +140,9 @@ fi
|
|
|
|
|
|
|
|
MOZ_TOOL_VARIABLES
|
|
|
|
|
|
|
|
+AC_PROG_CPP
|
|
|
|
+AC_PROG_CXXCPP
|
|
|
|
+
|
|
|
|
dnl Special win32 checks
|
|
|
|
dnl ========================================================
|
|
|
|
|
2018-07-30 14:23:11 +02:00
|
|
|
@@ -957,6 +960,9 @@ arm*-*)
|
|
|
|
ENABLE_ION=1
|
|
|
|
AC_DEFINE(JS_CPU_ARM)
|
|
|
|
;;
|
|
|
|
+aarch64*-*)
|
|
|
|
+ ENABLE_ION=1
|
|
|
|
+ ;;
|
|
|
|
sparc-*)
|
|
|
|
dnl ENABLE_ION=0
|
|
|
|
AC_DEFINE(JS_CPU_SPARC)
|
|
|
|
@@ -1024,7 +1030,7 @@ dnl Checks for header files.
|
Import firefox52-52.1.0 as www/firefox52.
Mozilla Firefox is a free, open-source and cross-platform web browser
for Windows, Linux, MacOS X and many other operating systems.
It is fast and easy to use, and offers many advantages over other web
browsers, such as tabbed browsing and the ability to block pop-up
windows.
Firefox also offers excellent bookmark and history management, and it
can be extended by developers using industry standards such as XML,
CSS, JavaScript, C++, etc. Many extensions are available.
2017-04-27 03:55:57 +02:00
|
|
|
dnl ========================================================
|
|
|
|
AC_HEADER_DIRENT
|
|
|
|
case "$target_os" in
|
|
|
|
-freebsd*)
|
|
|
|
+freebsd*|*-*-dragonfly*)
|
|
|
|
# for stuff like -lXshm
|
|
|
|
CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}"
|
|
|
|
;;
|
2018-07-30 14:23:11 +02:00
|
|
|
@@ -1155,7 +1161,7 @@ then
|
Import firefox52-52.1.0 as www/firefox52.
Mozilla Firefox is a free, open-source and cross-platform web browser
for Windows, Linux, MacOS X and many other operating systems.
It is fast and easy to use, and offers many advantages over other web
browsers, such as tabbed browsing and the ability to block pop-up
windows.
Firefox also offers excellent bookmark and history management, and it
can be extended by developers using industry standards such as XML,
CSS, JavaScript, C++, etc. Many extensions are available.
2017-04-27 03:55:57 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
case "$target" in
|
|
|
|
- *-*-freebsd*)
|
|
|
|
+ *-*-freebsd*|*-*-dragonfly*)
|
|
|
|
AC_DEFINE(_REENTRANT)
|
|
|
|
AC_DEFINE(_THREAD_SAFE)
|
|
|
|
dnl -pthread links in -lpthread, so don't specify it explicitly.
|
2018-07-30 14:23:11 +02:00
|
|
|
@@ -1755,6 +1761,9 @@ elif test "$CPU_ARCH" = "arm"; then
|
|
|
|
|
|
|
|
dnl ARM platforms may trap on unaligned accesses; catch the signal and
|
|
|
|
dnl recover.
|
|
|
|
+elif test "$CPU_ARCH" = "aarch64"; then
|
|
|
|
+ AC_DEFINE(JS_CODEGEN_ARM64)
|
|
|
|
+ JS_CODEGEN_ARM64=1
|
|
|
|
elif test "$CPU_ARCH" = "mips32"; then
|
|
|
|
AC_DEFINE(JS_CODEGEN_MIPS32)
|
|
|
|
JS_CODEGEN_MIPS32=1
|