Originally Posted by
riwu
...
Looks like the newest version of OpenSSL officially supports 64-bit but has problems with its make-file (make-file also changed and so did the configuration).. Anyway, to get around it, use the following to build the libraries:
bash Code:
#For Building Zlib:
export "INCLUDE_PATH=/usr/local/include"
export "LIBRARY_PATH=/usr/local/lib"
export "BINARY_PATH=/usr/local/bin"
export "CFLAGS=-m32"
export "CXXFLAGS=-m32"
export "LDFLAGS=-m32"
make -f win32/Makefile.gcc install
#For Building OpenSSL (if you are missing any dependencies, run "make depend" before "make install"):
./configure no-shared threads --prefix=/usr/local mingw
make install
#For Building OpenSSL (with specific CPU/Architecture):
./configure no-shared threads --prefix=/usr/local -m32 -march=i686 mingw
make install
#For Building OpenSSL (without Assembly):
./configure no-shared threads --prefix=/usr/local no-asm mingw
make install
#For Listing OpenSSL CPU/OS/Architecture configurations:
./configure no-shared thread --prefix=/usr/local -m32
#For Building CurlLib:
./configure —-enable-static —-enable-shared —-enable-ipv6 —-with-ssl=/usr/local --build=i686-pc-windows "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32"
make install
OpenSSL is installed in your prefix directory. You can specify --prefix=/c/OpenSSL or --prefix=/c/OpenSSL64 but in the above I just leave it as /usr/local.
If you decide to change the prefix then when building Curl, you have to specify --with-ssl=WhateverPrefixYouSpecified