build: Select the libboost_python matching the python version.#4209
Conversation
|
Saw you flagged this as "a bit hackery". I think reusing what configure already has would help make it less so.
ax_python_lib="boost_python`echo $ac_python_version | tr -d .` boost_python"No extra subprocess, and the boost suffix is guaranteed to match the libpython the build already links. The ordering idea itself is right (CMake derives the same |
e7a7d56 to
6246b2a
Compare
|
Well, yes... I was looking for it but overlooked it. Now it is used with the python method as fallback. Now it feels a lot more resilient. BTW, your version also creates a sub-process. How else is |
|
Yeah |
Recent changes in Debian sid cause the wrong libboost_python to be selected in configure (313 instead of 314) causing a crash in milltask.
The python version is now extracted and used to test the "proper" library first before a generic test of which potential libraries are available on the filesystem.