JS is Mozilla's JavaScript engine written in C. This package is present for GJS.
This package is known to build and work properly using an LFS-8.4 platform.
Download (HTTP): http://ftp.gnome.org/pub/gnome/teams/releng/tarballs-needing-help/mozjs/mozjs-60.1.0.tar.bz2
Download (FTP): ftp://ftp.gnome.org/pub/gnome/teams/releng/tarballs-needing-help/mozjs/mozjs-60.1.0.tar.bz2
Download MD5 sum: 202f71313e53d9b92e7c578107541539
Download size: 31 MB
Estimated disk space required: 640 MB
Estimated build time: 6.6 SBU
Autoconf-2.13, ICU-63.1, NSPR-4.20, Python-2.7.15, Xorg Libraries, yasm-1.3.0, and Zip-3.0
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/js60
Install JS by running the following commands:
If installing in the chroot environment, be sure to export the
SHELL
environment variable or
configuration of the package will fail.
mkdir mozjs-build && cd mozjs-build && ../js/src/configure --prefix=/usr \ --with-intl-api \ --with-system-zlib \ --with-system-nspr \ --with-system-icu \ --disable-jemalloc \ --enable-readline && make
This package does not come with a working test suite.
Now, as the root
user:
make install
--with-*
: These parameters
allow the build system to use system versions of the above
libriares. These are required for stability.
--enable-readline
: This
switch enables Readline support in the JS shell.
--disable-jemalloc
: This
switch disables the internal memory allocator used in JS60.
jemalloc causes a conflict with glibc.
Last updated on 2019-02-19 21:37:52 -0800