aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-11-07 11:57:33 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-11-07 11:57:33 +0200
commitecd3e83d384cad36c3ae28988d0a95b77f627f4c (patch)
treef75f1535dbdbb36a162a73986d03f905ed0c8009
parent882583f64e517ab232edb6bbb7433631c655c9da (diff)
Use `lib` prefix on MinGW when forming build system module library name
-rw-r--r--libbuild2/module.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbuild2/module.cxx b/libbuild2/module.cxx
index a8304ff..eec770b 100644
--- a/libbuild2/module.cxx
+++ b/libbuild2/module.cxx
@@ -330,7 +330,9 @@ namespace build2
//
const char* pfx;
const char* sfx;
-#if defined(_WIN32)
+#if defined(__MINGW32__)
+ pfx = "libbuild2-"; sfx = ".dll";
+#elif defined(_WIN32)
pfx = "build2-"; sfx = ".dll";
#elif defined(__APPLE__)
pfx = "libbuild2-"; sfx = ".dylib";