Compiled on RPI3B with 6.1.25-piCore-v7 Compile Flags: CFLAGS='-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -L/usr/local/lib -Os -pipe -flto -fuse-linker-plugin -fno-exceptions' CXXFLAGS='-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -L/usr/local/lib -Os -pipe -flto -fuse-linker-plugin -fno-exceptions -fno-rtti' LDFLAGS='-Wl,-rpath=/usr/local/lib -Wl,-O1' export CFLAGS CXXFLAGS LDFLAGS Dependencies: compiletc automake libtool-dev python3.11-dev llvm15-bin Commands: wget https://download.gnome.org/sources/libxml2/2.11/libxml2-2.11.5.tar.xz tar -xf libxml2-2.11.5.tar.xz cd libxml2-2.11.5/ ./autogen.sh --prefix=/usr/local --enable-shared --enable-static --with-python=/usr/local/bin/python3 time make -j4 real 5m 6.69s user 7m 4.86s sys 0m 13.33s DESTDIR=/tmp/packing-libxml2 make install llvm-strip --strip-debug /tmp/packing-libxml2/usr/local/lib/*.a llvm-strip --strip-debug /tmp/packing-libxml2/usr/local/lib/python3.*/site-packages/*.a # dev (remember to check python version) mkdir -p /tmp/packing-libxml2-dev/usr/local/lib mv /tmp/packing-libxml2/usr/local/include /tmp/packing-libxml2-dev/usr/local mv /tmp/packing-libxml2/usr/local/lib/*a /tmp/packing-libxml2-dev/usr/local/lib mv /tmp/packing-libxml2/usr/local/lib/pkgconfig/ /tmp/packing-libxml2-dev/usr/local/lib mv /tmp/packing-libxml2/usr/local/lib/cmake /tmp/packing-libxml2-dev/usr/local/lib mv /tmp/packing-libxml2/usr/local/lib/xml2Conf.sh /tmp/packing-libxml2-dev/usr/local/lib mkdir -p /tmp/packing-libxml2-dev/usr/local/share mv /tmp/packing-libxml2/usr/local/share/aclocal/ /tmp/packing-libxml2-dev/usr/local/share mkdir -p /tmp/packing-libxml2-dev/usr/local/bin mv /tmp/packing-libxml2/usr/local/bin/xml2-config /tmp/packing-libxml2-dev/usr/local/bin mkdir -p /tmp/packing-libxml2-dev/usr/local/lib/python3.11/site-packages mv /tmp/packing-libxml2/usr/local/lib/python3.11/site-packages/*a /tmp/packing-libxml2-dev/usr/local/lib/python3.11/site-packages # There's a path bug with the installer in 2.11.5 # You'll need to move the headers back to where they should be mv squashfs-root/usr/local/include/libxml2/libxml/* squashfs-root/usr/local/include/libxml2/ rmdir squashfs-root/usr/local/include/libxml2/libxml/ # python mkdir -p /tmp/packing-libxml2-python/usr/local/lib/ mv /tmp/packing-libxml2/usr/local/lib/python3.* /tmp/packing-libxml2-python/usr/local/lib/ # doc mkdir -p /tmp/packing-libxml2-doc/usr/local/ mv /tmp/packing-libxml2/usr/local/share /tmp/packing-libxml2-doc/usr/local/ # bin mkdir -p /tmp/packing-libxml2-bin/usr/local/ mv /tmp/packing-libxml2/usr/local/bin /tmp/packing-libxml2-bin/usr/local/ # strip strip --strip-unneeded /tmp/packing-libxml2-bin/usr/local/bin/* strip --strip-unneeded /tmp/packing-libxml2/usr/local/lib/libxml2.so.2.* strip --strip-unneeded /tmp/packing-libxml2-python/usr/local/lib/python3.*/site-packages/*so # squash cd /tmp sudo chown -R root:root packing-libxml2* for D in packing-libxml2*; do mksquashfs $D ${D#packing-}.tcz -quiet; done