tce-load -lwi git compiletc squashfs-tools git clone https://github.com/bellard/quickjs cd quickjs sed -i 's/#CONFIG_LTO=y/CONFIG_LTO=y/' Makefile sed -i 's/-O2//' Makefile export CFLAGS="-mtune=generic -Os -pipe" export CXXFLAGS="-mtune=generic -Os -pipe" export LDFLAGS="-Wl,-O1" make install -j8 DESTDIR=/tmp/qjs for f in /tmp/qjs/usr/local/lib/quickjs/*.a; do d=$(mktemp -d) cd "$d" ar x "$f" find . -name '*.o' -exec strip -s {} \; ar rcs "$f" *.o cd - rm -rf "$d" done mksquashfs /tmp/qjs/ quickjs.tcz -e usr/local/bin/qjsc -e usr/local/bin/qjscalc -e usr/local/lib/ -e usr/local/include/ mksquashfs /tmp/qjs/ quickjs-tools.tcz -e usr/local/bin/qjs -e usr/local/lib/ -e usr/local/include/ mksquashfs /tmp/qjs/ quickjs-libs.tcz -e usr/local/bin/ -e usr/local/include/ mksquashfs /tmp/qjs/ quickjs-dev.tcz -e usr/local/bin/ -e usr/local/lib/