SpiderMonkey is Mozilla's JavaScript engine written in C/C++. The most recent standalone source code release implements JavaScript 1.8.5.
This package is known to build and work properly using an LFS-7.3 platform.
Download (HTTP): http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz
Download (FTP): ftp://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz
Download MD5 sum: a4574365938222adca0a6bd33329cb32
Download size: 5.9 MB
Estimated disk space required: 99 MB
Estimated build time: 1.1 SBU
NSPR-4.9.6, Python-2.7.5 and Zip-3.0
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/SpiderMonkey
Install SpiderMonkey by running the following commands:
cd js/src && sed -i 's#s \($(SHLIB_\(ABI\|EXACT\)_VER)\)#s $(notdir \1)#' Makefile.in && ./configure --prefix=/usr --enable-threadsafe --with-system-nspr && make
To test the results, issue: TZ=US/Pacific make check.
Now, as the root user:
make install
sed -i 's#s
\($(SHLIB_\(ABI\|EXACT\)_VER)\)#s $(notdir \1)#'
Makefile.in: This sed fixes the symlinks for
libmozjs185.so so that they are
relative and not absolute symlinks.
TZ=US/Pacific make check: the timezone tests were written to be executed in Pacific time and to assume an mm/dd/yyyy date format. The test suite runs in the local timezone, so override its environment to prevent multiple failures in the check-date-format-tofte.js tests.
--enable-threadsafe: This switch
enables support for multiple threads.
--with-system-nspr: This parameter
forces the package to link to the system version of NSPR instead of using its included, and now
old, version.
Last updated on 2013-03-15 16:26:39 +0000