SpiderMonkey-1.0.0

Introduction to SpiderMonkey

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.

Package Information

SpiderMonkey Dependencies

Required

NSPR-4.9.6, Python-2.7.5 and Zip-3.0

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/SpiderMonkey

Installation of 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

Command Explanations

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.

Contents

Installed Program: js-config
Installed Libraries: libmozjs185-1.0.a and libmozjs185.so
Installed Directory: /usr/include/js

Short Descriptions

js-config

is used to find out SpiderMonkey compiler and linker flags.

libmozjs185.so

contains the Mozilla JavaScript API functions.

Last updated on 2013-03-15 16:26:39 +0000