Open yapus opened 9 years ago
This patch helped me
--- a/m4/boost.m4 +++ b/m4/boost.m4 @@ -438,16 +438,10 @@ for boost_rtopt_ in $boost_rtopt '' -d; do # If with_boost is empty, we'll search in /lib first, which is not quite # right so instead we'll try to a location based on where the headers are. boost_tmp_lib=$with_boost - boost_tmp_lib_locs=() - if test x"$with_boost" != x; then - boost_tmp_lib_locs=("$boost_tmp_lib/stage/lib" "$boost_tmp_lib/lib") - else - test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} - boost_tmp_lib_locs=("$boost_tmp_lib/stage/lib" "$boost_tmp_lib/lib" '' \ + test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} + for boost_ldpath in "$boost_tmp_lib/stage/lib" "$boost_tmp_lib/lib" '' \ /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \ - "$with_boost" C:/Boost/lib /lib*) - fi - for boost_ldpath in "${boost_tmp_lib_locs[[@]]}" + "$with_boost" C:/Boost/lib /lib* do # Don't waste time with directories that don't exist. if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
I'm trying to link with static boost build and having a problem:
configure.ac
and run configure with
but linker fails generating the following error:
Somehow -lboost_thread-mt linker flag is being used instead of static link with /home/user/boost_1_58_0/stage/lib/libboost_thread.a.
The host is CentOS 6.5 x64 2.6.32, i have also system Boost installed in /usr/local/lib