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.0 platform.

Package Information

SpiderMonkey Dependencies

Required

NSPR-4.9, Python-2.7.3 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: 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.

--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 2012-05-19 18:24:06 +0000