Skip to content

Instantly share code, notes, and snippets.

@kexplo
Forked from dch/gist:1411446
Created June 13, 2013 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kexplo/5770727 to your computer and use it in GitHub Desktop.
Save kexplo/5770727 to your computer and use it in GitHub Desktop.

Building static libcurl and openssl on Windows

These instructions were tested on Windows 7 Professional w/ Visual Studio 2010

Building openssl

  1. Download the latest openssl from the website; at the time of this writing, it is 1.0.0d

  2. Extract it to your drive; I put it in c:\code\openssl-1.0.0d

  3. install ActiveState perl unless you already have a non-cygwin perl installed on windows

  4. Open a Visual Studio 2010 Command Prompt

  5. from the openssl dir, run:

     perl Configure VC-WIN32 no-shared
    
  6. Also from the openssl dir, run:

     ms\do_ms.bat
    
  7. Also from the openssl dir, run:

     nmake -f ms\nt.mak
    

Building libcurl

  1. Download the latest libcurl from the website; at the time of this writing, it is 7.21.7

  2. Edit Makefile and change VC=vc6 to VC=vc10

  3. Edit lib\Makefile.vc10 and add the following to CFLAGS:

    /DCURL_DISABLE_LDAP /DCURL_DISABLE_TELNET /DCURL_DISABLE_DICT /DCURL_DISABLE_TFTP
    
  4. Run the following:

     set RTLIBCFG=static
     set openssl_path=C:\code\openssl-1.0.0d
     nmake vc-ssl
    
@kexplo
Copy link
Author

kexplo commented Jun 13, 2013

Add the NASM executable to the PATH environment variable;

PATH = %PATH%;c:\nasm-2.10.07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment