#!/bin/sh -ex # Looks like libressl needs networking to autogen rc-service networking start mv openbsd portable cd portable ./autogen.sh CC=gcc ./configure --host=x86_64-w64-mingw32 make tar -caf include.tar.gz include/tls.h include/openssl/* cp tls/.libs/libtls.a /root cp ssl/.libs/libbs.a /root cp ssl/.libs/libssl.a /root cp crypto/.libs/libcompat.a /root cp crypto/.libs/libcompatnoopt.a /root cp crypto/.libs/libcrypto.a /root cp apps/openssl/openssl.exe /root cp include.tar.gz /root