BobBuildTool/basement

MSYS2: link tool error (while builing boost library)

Closed this issue · 3 comments

${VS_PATH:+export PATH="$PATH:$VS_PATH"}

in my case the /usr/bin/link tool is picked. we should push VS_PATH in front of PATH.

in my case i tried to build the boost library. b2 uses the link tool.

$ which -a link
/usr/bin/link
/bin/link
/c/Program Files/Git/usr/bin/link

is there a way to force the correct tool inside the toolchain recipe?

Well, I guess there is no good solution. Maybe you have to patch boost and pass an absolute path for the link tool?

perfekt trigger:

echo "using msvc : ${MSVC_VER} : ${CXX} : <linker>\"\\\"$(cygpath -m "$(dirname "$(which cl)")/link.exe")\\\"\" ;" > user-config.jam
        EXTRA+=( "--user-config=$PWD/user-config.jam" )

take care off the double quote: boostorg/build#566