JS is Mozilla's JavaScript engine written in C/C++.
This package is known to build and work properly using an LFS-7.6 systemd platform.
Download (HTTP): http://ftp.mozilla.org/pub/mozilla.org/js/mozjs17.0.0.tar.gz
Download (FTP): ftp://ftp.mozilla.org/pub/mozilla.org/js/mozjs17.0.0.tar.gz
Download MD5 sum: 20b6f8f1140ef6e47daa3b16965c9202
Download size: 6.5 MB
Estimated disk space required: 1.2 GB
Estimated build time: 2.0 SBU
libffi-3.1, NSPR-4.10.7, Python-2.7.8 and Zip-3.0
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/JS
Install JS by running the following commands:
cd js/src &&
./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/js-17.0/ \
/usr/lib/libmozjs-17.0.a \
/usr/lib/pkgconfig/mozjs-17.0.pc \
-type f -exec chmod -v 644 {} \;
--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 2014-08-22 13:59:17 -0700