pkgsrc/mail/thunderbird10/patches/patch-as

52 lines
1.6 KiB
Text

$NetBSD: patch-as,v 1.2 2012/12/24 21:14:19 joerg Exp $
Treat DragonFly like FreeBSD.
--- mozilla/js/src/configure.in.orig 2012-11-15 21:59:30.000000000 +0000
+++ mozilla/js/src/configure.in
@@ -799,7 +799,7 @@ EOF
AC_LANG_RESTORE
])
- if test "$ac_cv_have_std__Throw" == "yes"; then
+ if test "$ac_cv_have_std__Throw" = "yes"; then
AC_CACHE_CHECK(for |class __declspec(dllimport) exception| bug,
ac_cv_have_dllimport_exception_bug,
[
@@ -2157,7 +2157,7 @@ case "$target" in
MOZ_FIX_LINK_PATHS='-Wl,-executable_path,$(LIBXUL_DIST)/bin'
;;
-*-freebsd*)
+*-freebsd*|*-dragonfly*)
if test `test -x /usr/bin/objformat && /usr/bin/objformat || echo elf` != "elf"; then
DLL_SUFFIX=".so.1.0"
DSO_LDOPTS="-shared"
@@ -2818,7 +2818,7 @@ case "$target" in
*-solaris*)
AC_DEFINE(AVMPLUS_UNIX)
;;
-*-freebsd*|*-kfreebsd*)
+*-freebsd*|*-kfreebsd*|*-netbsd*|*-dragonfly*)
AC_DEFINE(AVMPLUS_UNIX)
;;
*-openbsd*)
@@ -3077,6 +3077,9 @@ if test "$GNU_CC"; then
AC_CACHE_CHECK(for visibility(hidden) attribute,
ac_cv_visibility_hidden,
[cat > conftest.c <<EOF
+#ifdef __clang__
+#error Not supported by old Mozilla
+#endif
int foo __attribute__ ((visibility ("hidden"))) = 1;
EOF
ac_cv_visibility_hidden=no
@@ -4344,7 +4347,7 @@ if test "$MOZ_MEMORY"; then
*-darwin*)
AC_DEFINE(MOZ_MEMORY_DARWIN)
;;
- *-*freebsd*)
+ *-*freebsd*|*-*dragonfly*)
AC_DEFINE(MOZ_MEMORY_BSD)
;;
*-android*|*-linuxandroid*)