JS is Mozilla's JavaScript engine written in C/C++.
This package is known to build and work properly using an LFS-7.10 platform.
Download (HTTP): http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-24.2.0.tar.bz2
Download MD5 sum: 5db79c10e049a2dc117a6e6a3bc78a8e
Download size: 15 MB
Estimated disk space required: 1.8 GB
Estimated build time: 4.2 SBU (additional 1.6 SBU for the tests)
libffi-3.2.1, NSPR-4.12, Python-2.7.12 and Zip-3.0
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/JS2
This package can be installed without problems, if you have installed JS-17.0.0. It is necessary to set SHELL=/bin/bash if you are working in chroot.
Install JS by running the following commands:
cd js/src &&
sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl &&
./configure --prefix=/usr \
--enable-readline \
--enable-threadsafe \
--with-system-ffi \
--with-system-nspr &&
make
To test the results, issue: make check.
Now, as the root user:
make install &&
find /usr/include/mozjs-24/ \
/usr/lib/libmozjs-24.a \
/usr/lib/pkgconfig/mozjs-24.pc \
-type f -exec chmod -v 644 {} \;
sed ... config/milestone.pl: Fix an issue caused by perl-5.22.0 and later.
--enable-threadsafe: This switch
enables support for multiple threads.
--enable-readline: This switch enables
Readline support in JS shell.
--with-system-ffi: This switch forces
the package to link to the system version of libffi instead of using its included, and now
old, version.
--with-system-nspr: This switch forces
the package to link to the system version of NSPR instead of using its included, and now
old, version.
Last updated on 2016-08-28 20:08:04 -0700