[MSYS2] add boost version detection via pacman

This commit is contained in:
R4SAS 2018-12-14 15:43:52 +03:00
parent 1fa34be52a
commit bc755ac32f

View File

@ -8,11 +8,12 @@ LDFLAGS := ${LD_DEBUG} -Wl,-Bstatic -static-libgcc -static-libstdc++
# Boost libraries suffix # Boost libraries suffix
BOOST_SUFFIX = -mt BOOST_SUFFIX = -mt
BOOST_ARCHSUFFIX = ${BOOST_SUFFIX}
# Since Boost 1.69.0, libraries in mingw use suffix with architecture in x32/x64 view # 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 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 BOOST_ARCHSUFFIX = ${BOOST_SUFFIX}-x32
else else
$(error Not supported platform) $(error Not supported platform)