From ecd3e83d384cad36c3ae28988d0a95b77f627f4c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 7 Nov 2019 11:57:33 +0200 Subject: Use `lib` prefix on MinGW when forming build system module library name --- libbuild2/module.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"; -- cgit v1.1