aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Mazur <[email protected]>2015-06-18 09:44:07 +0300
committerSimon Mazur <[email protected]>2015-06-18 09:44:07 +0300
commit9cf9ac6e7631976576e1e1b2a46d1f90a2c22616 (patch)
treeee1e7fd6ae6cb2234a25377e3ea1876f6f2b8002
parentDon't ignore environment variables if building with mingw (diff)
downloadrust-openssl-9cf9ac6e7631976576e1e1b2a46d1f90a2c22616.tar.xz
rust-openssl-9cf9ac6e7631976576e1e1b2a46d1f90a2c22616.zip
Mention mingw in README
-rw-r--r--README.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/README.md b/README.md
index 887b09d4..6ce18d04 100644
--- a/README.md
+++ b/README.md
@@ -29,7 +29,15 @@ rust-openssl to a separate installation.
### Windows
-Install OpenSSL from [here][1]. Cargo will not be able to find OpenSSL if it's
+On Windows, consider building with [mingw-w64](http://mingw-w64.org/).
+Build script will try to find mingw in `PATH` environment variable to provide
+Cargo with location where openssl libs from mingw-w64 package may be found.
+If you followed guide [Building on Windows](https://github.com/rust-lang/rust#building-on-windows)
+from rust repo, then you should have [MSYS2](http://msys2.github.io/) with
+`mingw-w64-openssl` installed as part of `mingw-w64-x86_64-toolchain`
+(or `mingw-w64-i686-toolchain`) package.
+
+Alternatively, install OpenSSL from [here][1]. Cargo will not be able to find OpenSSL if it's
installed to the default location. You can either copy the `include/openssl`
directory, `libssl32.dll`, and `libeay32.dll` to locations that Cargo can find
or pass the location to Cargo via environment variables: