# Note: depends on libressl or openssl # Note: depends on zlib # Note: depends on perl # Note: depends on Python2 wget -c https://people.mozilla.org/~sstangl/mozjs-31.2.0.rc0.tar.bz2 tar -xjf mozjs-31.2.0.rc0.tar.bz2 cd mozjs-31.2.0 sed -i -e 's/nullptr/0/g' js/src/builtin/TypedObject.cpp js/src/frontend/BytecodeCompiler.cpp sed -i -e 's/add_symlink/add_copy/' python/mozbuild/mozbuild/backend/recursivemake.py mkdir -p builddir cd builddir ../js/src/configure --prefix="/usr" make # Doesn't mind -j# make install install dist/include/js-config.h /usr/include/mozjs-31