Recent lizards don't work yet, but this is definitely needed

for static constructors in dynamic libraries to be called.

Mozilla crashes in a dynamic library, btw.
This commit is contained in:
espie 2000-09-16 16:13:06 +00:00
parent dbcb25409e
commit 2084778308
4 changed files with 41 additions and 1340 deletions

View File

@ -1,43 +1,31 @@
# $OpenBSD: Makefile,v 1.11 2000/04/09 17:38:38 espie Exp $
# $OpenBSD: Makefile,v 1.12 2000/09/16 16:13:06 espie Exp $
#
# From: $NetBSD: Makefile,v 1.13 1998/08/04 13:09:21 fvdl Exp $
# but modified to use lesstif 0.86.0...
BROKEN= "extremely old, needs updating"
DISTNAME= mozilla
M= 17
PKGNAME= mozilla-$M
DISTFILES= mozilla-source-M$M.tar.bz2
BROKEN= core dumps in dynamic library constructor
DISTNAME= mozilla-19980728
CATEGORIES= www
NEED_VERSION= 1.230
FAKE=No
NEED_VERSION= 1.324
MAINTAINER= ports@openbsd.org
MASTER_SITES= ftp://ftp.mozilla.org/pub/mozilla/source/ \
MASTER_SITES= ftp://ftp.mozilla.org/pub/mozilla/releases/m$M/src/ \
ftp://sunsite.org.uk/Mirrors/ftp.mozilla.org/pub/mozilla/source/ \
ftp://mirror.aarnet.edu.au/pub/mozilla/mozilla/source/
LIB_DEPENDS= Xm.1.::x11/lesstif
LIB_DEPENDS= Xm.1.::x11/lesstif \
IDL.4::devel/ORBit
USE_X11= Yes
USE_GMAKE= Yes
WRKDIST= ${WRKDIR}/mozilla
RELEASE!= uname -r
MOZ_OBJDIR= ${OPSYS}${RELEASE}_OPT.OBJ
MOZ_LIBDIR= ${PREFIX}/lib/mozilla
MAKE_ENV+= NO_SECURITY=1 MOZ_MEDIUM=1 MOZILLA_CLIENT=1 NO_MDUPDATE=1
MAKE_ENV+= LIBRUNPATH=${MOZ_LIBDIR}
#comment out for debugging
MAKE_ENV+= BUILD_OPT=1
.if !defined(NO_WARNINGS)
pre-fetch:
@echo ""
@echo "*** Please see ${FILESDIR}/README for general caveats"
@echo ""
.endif
CONFIGURE_STYLE= gnu autoconf
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dist/${MOZ_OBJDIR}/bin/moz-export ${PREFIX}/bin

View File

@ -1,3 +1,3 @@
MD5 (mozilla-19980728.tar.gz) = 657a5f1ba4d45bdfb091a90d43fccc5b
RMD160 (mozilla-19980728.tar.gz) = 67a4993ec81b58d519ad37e30c081c392d60daaf
SHA1 (mozilla-19980728.tar.gz) = 846fd0f9e89ff64ad16ce8c637c643f8732ffd25
MD5 (mozilla-source-M17.tar.bz2) = 6156cc3d6bb0a9d752ef5c883f80b1a0
RMD160 (mozilla-source-M17.tar.bz2) = ea7d2be79d5f915f202113e802542ea89e0a641b
SHA1 (mozilla-source-M17.tar.bz2) = d6389bdf31baa63451104f63f7bb3b881180ff27

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,26 @@
$OpenBSD: patch-configure_in,v 1.1 2000/09/16 16:13:06 espie Exp $
--- configure.in.orig Sat Sep 16 01:30:59 2000
+++ configure.in Sat Sep 16 01:40:29 2000
@@ -738,16 +738,12 @@ case "$target" in
*-openbsd*)
DLL_SUFFIX=".so.1.0"
DSO_CFLAGS=''
- DSO_PIC_CFLAGS='-fPIC'
- DSO_LDOPTS='-shared -h $@'
- MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
- MKCSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
- if $CC -E - -dM </dev/null | grep -v __ELF__ >/dev/null; then
- DSO_LDOPTS="-Bshareable /usr/lib/c++rt0.o"
- fi
- if test "$LIBRUNPATH"; then
- DSO_LDOPTS="-R$LIBRUNPATH $DSO_LDOPTS"
- fi
+ CFLAGS="$CFLAGS -Dunix"
+ CXXFLAGS="$CXXFLAGS -Dunix"
+ DSO_PIC_CFLAGS='-fPIC -DPIC'
+ DSO_LDOPTS='-shared'
+ MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_LDOPTS) -o $@'
+ MKCSHLIB='$(CC) $(CFLAGS) $(DSO_LDOPTS) -o $@'
;;
*-openvms*)