tce-load -lwi compiletc make cmake openssl-dev squashfs-tools libcap-dev wget --no-check-certificate -O- https://github.com/warmcat/libwebsockets/archive/refs/tags/v4.3.3.tar.gz | tar -xz cd libwebsockets-4.3.3/ export CFLAGS="-mtune=generic -Os -pipe" export CXXFLAGS="-mtune=generic -Os -pipe" export LDFLAGS="-Wl,-O1" cmake -DCMAKE_BUILD_TYPE=RELEASE -B build cd build make -j8 make install DESTDIR=/tmp/libwebsockets strip -s /tmp/libwebsockets/usr/local/lib/* mksquashfs /tmp/libwebsockets/ libwebsockets.tcz -e usr/local/share -e usr/local/bin -e usr/local/include -e usr/local/lib/cmake -e usr/local/lib/pkgconfig mksquashfs /tmp/libwebsockets/ libwebsockets-dev.tcz -e usr/local/share -e usr/local/bin -e usr/local/lib/libwebsockets.a -e usr/local/lib/libwebsockets.so -e usr/local/lib/libwebsockets.so.19