Building wolfSSL with Cygwin on Windows

Users and customers build the wolfSSL embedded SSL/TLS library in all kinds of build environments, one of those being Cygwin on Windows.

To build wolfSSL for Cygwin, here are the current steps to do so. These instructions can also be found in the wolfSSL Manual.

  1. Go to https://www.cygwin.com/install.html and download setup-x86_64.exe
  2. Run setup-x86_64.exe and install however you choose. Click through the installation menus until you reach the “Select Packages” stage.
  3. Click on the “+” icon to expand “All”
  4. Now go to the “Archive” section and select “unzip” drop down, change “Skip” to 6.0-15 (or some other version).
  5. Under “Devel” click “autoconf” drop down and change “Skip” to “10-1” (or some other version)
  6. Under “Devel” click “automake” drop down and change “Skip” to “10-1” (or some other version)
  7. Under “Devel” click the “gcc-core” drop down and change “Skip” to 7.4.0-1 (NOTE: wolfSSL has not tested GCC 9 or 10 and as they are fairly new does not recommend using them until they have had a bit more time to be fine-tuned for development).
  8. Under “Devel” click the “git” drop down and change “Skip” to 2.29.0-1 (or some other version)
  9. Under “Devel” click “libtool” drop down and change “Skip” to “2.4.6-5” (or some other version)
  10. Under “Devel” click the “make” drop down and change “Skip” to 4.2.1-1 (or some other version)
  11. Click “Next” and proceed through the rest of the installation.

Post Install:

  1. Open a Cygwin terminal and clone wolfSSL “git clone https://github.com/wolfssl/wolfssl.git”
  2. “cd wolfssl”
  3. “./autogen.sh”
  4. “./configure”
  5. “make”
  6. “make check”

For additional assistance building wolfSSL in your environment, contact wolfSSL at facts@wolfssl.com. In addition to portable builds, wolfSSL includes TLS 1.3 and has variants available for FIPS 140-2/140-3, DO-178, and MISRA!