aboutsummaryrefslogtreecommitdiff
path: root/README.windows
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2015-03-02 23:14:35 -0600
committerBrent Cook <bcook@openbsd.org>2015-03-02 23:14:35 -0600
commit79492b46f6200764468bbb199e7e46cfe0c4a17e (patch)
treedff54eccd7b04b49cf2e04f5d9de00792f7b700c /README.windows
parente0855bdb1dd7507b76a2a43a5c926f7b36055799 (diff)
downloadportable-79492b46f6200764468bbb199e7e46cfe0c4a17e.tar.gz
portable-79492b46f6200764468bbb199e7e46cfe0c4a17e.tar.bz2
portable-79492b46f6200764468bbb199e7e46cfe0c4a17e.zip
add windows README, package README files with distribution
Diffstat (limited to 'README.windows')
-rw-r--r--README.windows40
1 files changed, 40 insertions, 0 deletions
diff --git a/README.windows b/README.windows
new file mode 100644
index 0000000..12e4963
--- /dev/null
+++ b/README.windows
@@ -0,0 +1,40 @@
1# Building
2
3For Windows systems, LibreSSL supports the mingw-w64 toolchain, which can use
4GCC or Clang as the compiler. Contrary to its name, mingw-w64 supports both
532-bit and 64-bit build environments. If your project already uses mingw-w64,
6then LibreSSL should integrate very nicely. Old versions of the mingw-w64
7toolchain, such as the one packaged with Ubuntu 12.04, may have trouble
8building LibreSSL. Please try it with a recent toolchain if you encounter
9troubles. If you are building under Cygwin, only builds with the mingw-w64
10compiler are supported, though you can easily use Cygwin to drive the build
11process.
12
13To configure and build LibreSSL for a 32-bit system, use the following
14build steps:
15
16 CC=i686-w64-mingw32-gcc ./configure --host=i686-w64-mingw32
17 make
18 make check
19
20For 64-bit builds, use these instead:
21
22 CC=x86_64-w64-mingw32-gcc ./configure --host=x86_64-w64-mingw32
23 make
24 make check
25
26# Using Libressl with Visual Studio
27
28A script for generating ready-to-use .DLL and static .LIB files is included in
29the source repository at
30https://github.com/libressl-portable/portable/blob/master/dist-win.sh
31
32This script uses mingw-w64 to build LibreSSL and then uses Visual Studio tools
33to generate compatible library import files ready-to-use with Visual
34Studio projects. Static and dynamic libraries are included. The script uses
35cv2pdb to generate Visual Studio and windbg compatible debug files. cv2pdb is a
36tool developed for the D language and can be found here:
37https://github.com/rainers/cv2pdb
38
39Pre-build Windows binaries are available with the LibreSSL release for your
40convenience.