MinGW에 OpenSSL 설치하다가 시간만 날리고 있었는데, 구글 검색한 내용들도 제각각이고 복잡해서 음...

그러다가 건진 아래 내용으로 해보니 일단 빌드가 됩니다.  테스트는 나중에 ㅡ.ㅡ;


make 하다가 "undefined reference to 'WinMain@16'" 이런 에러를 만난 적이 있는데, 검색을 해보니 압축 풀릴 때 문제가 있을 수 있다고..  음..  여하튼 다시 받아서 "tar -xzf" 로 풀어서 해보니 잘 됩니다. ㅡ.ㅡa


저는 openssl-1.0.1c 버전에 "perl Configure mingw" 로 빌드하였습니다.


출처: http://stackoverflow.com/questions/9379363/how-to-build-openssl-with-mingw-in-windows


To build OpenSSL, you need a working Perl installation.

Download OpenSSL from its official website and decompress the archive.

Windows 32/64 bits - MinGW

You must run these commands from a MSys console.

For 32 bits:

perl Configure mingw no-shared no-asm --prefix=/c/OpenSSL

For 64 bits:

perl Configure mingw64 no-shared no-asm --prefix=/C/OpenSSL-x64

Then:

make depend

make

make install

The make depend line is only needed on the most recent OpenSSL version if you specified any of theno-... options.

Note that this will compile OpenSSL in static mode.

If at some point you get a "make (e=2):" error, ensure you don't have another "make.exe" in your PATH or just type /bin/make instead of make.


You may, of course, need to compile it with other options (such as dynamic linking, or asm enabled). So feel free to look at the help perl Configure can provide to know more about the available options.

share|improve this answer


Posted by 류종택


티스토리 툴바