mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
[MSYS2] add boost version detection via pacman
This commit is contained in:
parent
1fa34be52a
commit
bc755ac32f
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user