aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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";