proclus' mozilla build instructions for Darwin
Join the GNU-Darwin distribution at
Warning, these instructions are incomplete, and out of date! They are here for archival purposes.
First, you need the mozilla sources.
Just grab the latest nightly build.
Next, you will need to configure the build. After untaring the sources, change to the mozilla directory and type "./configure powerpc-apple-freebsd" After configuring, type "make". Other configurations are possible.
You will find that you need a Darwin.mk file. Here is the one I've been using. It goes in mozilla/nsprpub/config, where you can compare it to the Freebsd.mk and the Rhapsody.mk.
Copy mozilla/nsprpub/pr/include/md/_rhapsody.cfg to mozilla/nsprpub/pr/include/md/_darwin.cfg, and add the following lines to mozilla/nsprpub/pr/include/md/
Makefile;
ifeq ($(OS_ARCH),Darwin)
MDCPUCFG_H = _darwin.cfg
endif
cd mozilla/nsprpub and make. If you run into problems, you may need to update your system include files via
CVS. You may also have to grab a few things, like sys/sem.h from the web.
If you can make in mozilla/nsprpub, you have a good chance of finishing. cd mozilla and make!
Some problems I encountered
In the configuration I have described above, some functions are duplicated and the dynamic loader will not tolerate this.
In the thread emulation code, two jump functions are prototyped as voids, and default to int. This is appears to be incompatible with the compiler, which
requires an enum. (Is this a bug in the compiler?).
No mozilla for darwin yet. If you are able to compile mozilla for darwin, you
should consult the Mozilla Distribution Instructions.
Back up to the Darwin page.
|