summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2018-05-03 16:46:56 +0200
committerOswald Buddenhagen <oswald.buddenhagen@qt.io>2018-12-17 21:30:05 +0000
commitc07ab93c204c134509032d7c3d50f31ee913c57c (patch)
tree4f4999cd4aac58bf79b0065f354eef206fb79df3 /src/network
parent5485a085e6d9af34a2ce0b86abf91b0b693b9d05 (diff)
configure: adjust openssl lib names on mingw
both the mingw and msvc build have a "lib" prefix on the libraries. this makes the msvc build unconventional, so it needs an extra source. for the mingw build, otoh, this is the expected setup, so the source used for unix will work just fine. this doesn't fix any actual bug, because mingw will apparently resolve -llibfoo to libfoo.a even though only liblibfoo.a and libfoo.lib are documented (on mingw.org). however, this mix of conventions is ugly and should be avoided. Change-Id: I32b1621e4ac15db1f071c08ced738bfdafdcc11b Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/network')
-rw-r--r--src/network/configure.json7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/network/configure.json b/src/network/configure.json
index 3f1cb7893b..4e4426342f 100644
--- a/src/network/configure.json
+++ b/src/network/configure.json
@@ -77,9 +77,12 @@
},
{
"libs": "-llibssl -llibcrypto",
- "condition": "config.win32"
+ "condition": "config.msvc"
},
- { "libs": "-lssl -lcrypto", "condition": "!config.win32" }
+ {
+ "libs": "-lssl -lcrypto",
+ "condition": "!config.msvc"
+ }
]
}
},