[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mozilla hacking.



Well, I took a crack at trying to make mozilla work on OpenBSD/i386
(-current ELF)

With these configuration corrections it gets further...

There are also PLIST/PFRAG.shared changes, but I did not include
them here, 'make update-plist' is what I used to regenerate the package
list so that the package would build.


Index: patches/patch-nsprpub_config_OpenBSD_mk
===================================================================
RCS file: patches/patch-nsprpub_config_OpenBSD_mk
diff -N patches/patch-nsprpub_config_OpenBSD_mk
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-nsprpub_config_OpenBSD_mk	9 May 2003 04:39:08 -0000
@@ -0,0 +1,22 @@
+$OpenBSD$
+--- nsprpub/config/OpenBSD.mk.orig	Wed Jun 28 02:42:56 2000
++++ nsprpub/config/OpenBSD.mk	Thu May  8 23:38:27 2003
+@@ -62,17 +62,8 @@ ARCH                   = openbsd
+ DLL_SUFFIX             = so.1.0
+ 
+ DSO_CFLAGS             = -fPIC
+-DSO_LDOPTS             = -Bshareable
+-ifeq ($(OS_TEST),alpha)
+ DSO_LDOPTS             = -shared
+-endif
+-ifeq ($(OS_TEST),mips)
+-DSO_LDOPTS             = -shared
+-endif
+-ifeq ($(OS_TEST),pmax)  
+-DSO_LDOPTS             = -shared
+-endif
+ 
+-MKSHLIB                        = $(LD) $(DSO_LDOPTS)
++MKSHLIB                        = $(CC) $(DSO_LDOPTS)
+ 
+ G++INCLUDES            = -I/usr/include/g++
Index: patches/patch-nsprpub_configure
===================================================================
RCS file: patches/patch-nsprpub_configure
diff -N patches/patch-nsprpub_configure
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-nsprpub_configure	9 May 2003 05:20:05 -0000
@@ -0,0 +1,18 @@
+$OpenBSD$
+--- nsprpub/configure.orig	Fri May  9 00:17:11 2003
++++ nsprpub/configure	Fri May  9 00:19:25 2003
+@@ -4130,12 +4130,8 @@ EOF
+     MDCPUCFG_H=_openbsd.cfg
+     PR_MD_CSRCS=openbsd.c
+     USE_NSPR_THREADS=1
+-    case "$OS_TEST" in
+-    alpha|mips|pmax)
+-        DSO_LDOPTS=-shared ;;
+-    *)
+-        DSO_LDOPTS=-Bshareable ;;
+-    esac
++    DSO_LDOPTS=-shared
++    MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
+     ;;
+ 
+ *-openvms*)
Index: patches/patch-nsprpub_configure_in
===================================================================
RCS file: patches/patch-nsprpub_configure_in
diff -N patches/patch-nsprpub_configure_in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-nsprpub_configure_in	9 May 2003 05:03:09 -0000
@@ -0,0 +1,18 @@
+$OpenBSD$
+--- nsprpub/configure.in.orig	Thu May  8 23:59:47 2003
++++ nsprpub/configure.in	Fri May  9 00:02:46 2003
+@@ -1490,12 +1490,8 @@ mips-sony-newsos*)
+     MDCPUCFG_H=_openbsd.cfg
+     PR_MD_CSRCS=openbsd.c
+     USE_NSPR_THREADS=1
+-    case "$OS_TEST" in
+-    alpha|mips|pmax)
+-        DSO_LDOPTS=-shared ;;
+-    *)
+-        DSO_LDOPTS=-Bshareable ;;
+-    esac
++    DSO_LDOPTS=-shared
++    MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
+     ;;
+ 
+ *-openvms*)
Index: patches/patch-nsprpub_pr_src_linking_prlink_c
===================================================================
RCS file: patches/patch-nsprpub_pr_src_linking_prlink_c
diff -N patches/patch-nsprpub_pr_src_linking_prlink_c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-nsprpub_pr_src_linking_prlink_c	9 May 2003 13:44:49 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+--- nsprpub/pr/src/linking/prlink.c.orig	Fri May  9 08:41:38 2003
++++ nsprpub/pr/src/linking/prlink.c	Fri May  9 08:43:30 2003
+@@ -162,8 +162,8 @@ struct _imcb *IAC$GL_IMAGE_LIST = NULL;
+  * On these platforms, symbols have a leading '_'.
+  */
+ #if defined(SUNOS4) || defined(DARWIN) || defined(NEXTSTEP) \
+-    || defined(OPENBSD) || defined(WIN16) \
+-    || (defined(NETBSD) && !defined(__ELF__))
++    || defined(WIN16) \
++    || ((defined(OPENBSD) || defined(NETBSD)) && !defined(__ELF__))
+ #define NEED_LEADING_UNDERSCORE
+ #endif
+