Skip to content

Instantly share code, notes, and snippets.

@HouzuoGuo
Created January 14, 2020 09:03
Show Gist options
  • Save HouzuoGuo/a5326b49cb17b7db2c46900f387dfaf5 to your computer and use it in GitHub Desktop.
Save HouzuoGuo/a5326b49cb17b7db2c46900f387dfaf5 to your computer and use it in GitHub Desktop.
Cross-compile and build OpenSSL for 32-bit ARM (hard-float) on an Intel/AMD computer
# Edit APT sources list file and uncomment/enable deb-src sources, then:
sudo dpkg --add-architecture armhf
sudo apt-get update
sudo apt-get install crossbuild-essential-armhf
sudo apt-get build-dep -a armhf openssl
apt-get source openssl
cd openssl-1.1.1
debuild -- clean
env DEB_HOST_MULTIARCH=armhf DEB_BUILD_OPTIONS=nocheck debuild -uc -us -aarmhf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment