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.0 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, Python-2.7.3 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: 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.
--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 2012-05-19 18:24:06 +0000