STATIC BUILD: SOCAT ========================================================== PREPARE Adjust as required. $ export TARGET="mipsel-linux-musl" $ export PREFIX="${HOME}/${TARGET}-static" $ LOCATION="http://www.dest-unreach.org/socat/download" $ VERSION="1.8.0.0" $ PKG="socat-${VERSION}.tar.bz2" $ CHECKSUMS="md5sum" DOWNLOAD $ wget "${LOCATION}/${PKG}" $ wget -O "$CHECKSUMS" "${LOCATION}.${CHECKSUMS}" VERIFY $ grep "$PKG" "$CHECKSUMS" | md5sum -c EXTRACT $ tar -xjf "$PKG" $ cd socat-${VERSION} PATCH $ sed -i -e 's/LIBS="$LIBS -lssl/& -lcrypto -lpthread -ldl/p' configure $ sed -i -e 's/strip $(PROGS)/$(TARGET)-&/g' Makefile.in BUILD $ ./configure --host="$TARGET" --prefix="$PREFIX" \ CFLAGS="-I${PREFIX}/include" LDFLAGS="-static -L${PREFIX}/lib" $ make $ make strip $ make install ==================================================== https://risingedge.co.za/