Browse Source

[MSYS2] add boost version detection via pacman

pull/1277/head
R4SAS 6 years ago
parent
commit
bc755ac32f
  1. 5
      Makefile.mingw

5
Makefile.mingw

@ -8,11 +8,12 @@ LDFLAGS := ${LD_DEBUG} -Wl,-Bstatic -static-libgcc -static-libstdc++ @@ -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)

Loading…
Cancel
Save