summaryrefslogtreecommitdiffstats
path: root/NOTES.WIN
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-07-06 09:38:59 +0200
committerRichard Levitte <levitte@openssl.org>2019-07-25 13:08:46 +0200
commit54aa9d51b09d67e90db443f682cface795f5af9e (patch)
treef084a32458524ee0b877ad563e9b7ff1b159e243 /NOTES.WIN
parentb4b42d441d350b48449ea93aaa035152123f70ae (diff)
Fix default installation paths on mingw
Mingw config targets assumed that resulting programs and libraries are installed in a Unix-like environment and the default installation prefix was therefore set to '/usr/local'. However, mingw programs are installed in a Windows environment, and the installation directories should therefore have Windows defaults, i.e. the same kind of defaults as the VC config targets. A difficulty is, however, that a "cross compiled" build can't figure out the system defaults from environment the same way it's done when building "natively", so we have to fall back to hard coded defaults in that case. Tests can still be performed when cross compiled on a non-Windows platform, since all tests only depend on the source and build directory, and otherwise relies on normal local paths. CVE-2019-1552 Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9400)
Diffstat (limited to 'NOTES.WIN')
-rw-r--r--NOTES.WIN15
1 files changed, 15 insertions, 0 deletions
diff --git a/NOTES.WIN b/NOTES.WIN
index 4d39d06f32..b1cb542d09 100644
--- a/NOTES.WIN
+++ b/NOTES.WIN
@@ -109,6 +109,21 @@
This naturally implies that you've installed corresponding add-on
packages.
+ Independently of the method chosen to build for mingw, the installation
+ paths are similar to those used when building with VC-* targets, except
+ that in case the fallbacks mentioned there aren't possible (typically
+ when cross compiling on Linux), the paths will be the following:
+
+ For mingw:
+
+ PREFIX: C:/Program Files (x86)/OpenSSL
+ OPENSSLDIR C:/Program Files (x86)/Common Files/SSL
+
+ For mingw64:
+
+ PREFIX: C:/Program Files/OpenSSL
+ OPENSSLDIR C:/Program Files/Common Files/SSL
+
Linking your application
========================