a4b957da48
Upstream changes: bug fixes. Package changes: avoid ".." in paths by changing WRKSRC and using CONFIGURE_DIRS. Add chunk to configure.in to avoid build failures I was seeing on NetBSD-current/amd64.
78 lines
2.1 KiB
Text
78 lines
2.1 KiB
Text
$NetBSD: patch-ac,v 1.4 2007/03/18 18:49:47 wiz Exp $
|
|
|
|
--- configure.in.orig 2007-01-18 23:44:32.000000000 +0000
|
|
+++ configure.in
|
|
@@ -62,7 +62,7 @@ USE_CPLUS=
|
|
USE_IPV6=
|
|
USE_MDUPDATE=
|
|
_MACOSX_DEPLOYMENT_TARGET=
|
|
-_OPTIMIZE_FLAGS=-O
|
|
+_OPTIMIZE_FLAGS=
|
|
_DEBUG_FLAGS=-g
|
|
MOZ_DEBUG=1
|
|
MOZ_OPTIMIZE=
|
|
@@ -1113,7 +1113,7 @@ tools are selected during the Xcode/Deve
|
|
PR_MD_CSRCS=dgux.c
|
|
;;
|
|
|
|
-*-freebsd*)
|
|
+*-freebsd* | *-dragonfly*)
|
|
if test -z "$USE_NSPR_THREADS"; then
|
|
USE_PTHREADS=1
|
|
fi
|
|
@@ -1133,6 +1133,9 @@ tools are selected during the Xcode/Deve
|
|
DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
|
|
MDCPUCFG_H=_freebsd.cfg
|
|
PR_MD_CSRCS=freebsd.c
|
|
+ if test "$LIBRUNPATH"; then
|
|
+ DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH"
|
|
+ fi
|
|
;;
|
|
|
|
*-hpux*)
|
|
@@ -1637,6 +1640,7 @@ mips-nec-sysv*)
|
|
AC_DEFINE(XP_UNIX)
|
|
AC_DEFINE(NETBSD)
|
|
AC_DEFINE(HAVE_BSD_FLOCK)
|
|
+ AC_DEFINE(HAVE_SOCKLEN_T)
|
|
USE_NSPR_THREADS=1
|
|
MDCPUCFG_H=_netbsd.cfg
|
|
PR_MD_CSRCS=netbsd.c
|
|
@@ -1649,13 +1653,16 @@ mips-nec-sysv*)
|
|
if test -z "$OBJECT_FMT"; then
|
|
if echo __ELF__ | ${CC-cc} -E - | grep -q __ELF__ 2>/dev/null; then
|
|
OBJECT_FMT=a.out
|
|
- DLL_SUFFIX=so.1.0
|
|
- DSO_LDOPTS='-shared'
|
|
else
|
|
OBJECT_FMT=ELF
|
|
+ fi
|
|
+ fi
|
|
+ if test "$OBJECT_FMT" = "ELF"; then
|
|
DLL_SUFFIX=so
|
|
DSO_LDOPTS='-shared -Wl,-soname,$(notdir $@)'
|
|
- fi
|
|
+ else
|
|
+ DLL_SUFFIX=so.1.0
|
|
+ DSO_LDOPTS='-shared'
|
|
fi
|
|
|
|
if test "$LIBRUNPATH"; then
|
|
@@ -2438,7 +2445,7 @@ if test -n "$USE_PTHREADS"; then
|
|
_PTHREAD_LDFLAGS=
|
|
fi
|
|
;;
|
|
- *-freebsd*)
|
|
+ *-freebsd* | *-dragonfly*)
|
|
AC_DEFINE(_REENTRANT)
|
|
AC_DEFINE(_THREAD_SAFE)
|
|
dnl -pthread links in -lc_r, so don't specify it explicitly.
|
|
@@ -2519,7 +2526,7 @@ case "$target" in
|
|
AC_DEFINE(_PR_NEED_PTHREAD_INIT)
|
|
fi
|
|
;;
|
|
-*-freebsd*)
|
|
+*-freebsd* | *-dragonfly*)
|
|
if test -n "$USE_NSPR_THREADS"; then
|
|
AC_DEFINE(_PR_LOCAL_THREADS_ONLY)
|
|
fi
|