tce-load -i libffi-dev nspr-dev python-dev

cd mozjs17.0.0

cd js/src

CFLAGS="-mtune=generic -Os -pipe" CXXFLAGS="-mtune=generic -Os -pipe" ./configure --prefix=/usr/local --enable-threadsafe --with-system-ffi --with-system-nspr

find . -name Makefile -type f -exec sed -i 's/-O3/ /g' {} \;

make
sudo make install

# find /usr/local/include/js-17.0/ /usr/local/lib/libmozjs-17.0.a /usr/local/lib/pkgconfig/mozjs-17.0.pc -type f -exec chmod 644 {} \;