diff --git a/Makefile.mingw b/Makefile.mingw index 074cef7f..24b345ae 100644 --- a/Makefile.mingw +++ b/Makefile.mingw @@ -8,11 +8,12 @@ LDFLAGS := ${LD_DEBUG} -Wl,-Bstatic -static-libgcc -static-libstdc++ # Boost libraries suffix BOOST_SUFFIX = -mt +BOOST_ARCHSUFFIX = ${BOOST_SUFFIX} # Since Boost 1.69.0, libraries in mingw use suffix with architecture in x32/x64 view -ifneq (, $(findstring x86_64, $(SYS))) +ifneq (, $(findstring x86_64, $(SYS))$(findstring 1.69.0, $(shell pacman -Q mingw-w64-x86_64-boost))) BOOST_ARCHSUFFIX = ${BOOST_SUFFIX}-x64 -else ifneq (, $(findstring i686, $(SYS))) +else ifneq (, $(findstring i686, $(SYS))$(findstring 1.69.0, $(shell pacman -Q mingw-w64-i686-boost))) BOOST_ARCHSUFFIX = ${BOOST_SUFFIX}-x32 else $(error Not supported platform)