Skip to content

Commit c8079c9

Browse files
committed
properly use the undocumented libtool shrext_cmds variable
shrext_cmds is actually a quoted set of commands to generate the shared library extension, not the actual shrext itself (regardless of it initially being set directly to .so as a default).
1 parent c8bc922 commit c8079c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build-aux/boost.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ dnl start the for loops).
429429
[AC_MSG_ERROR([cannot compile a test that uses Boost $1])])
430430
ac_objext=$boost_save_ac_objext
431431
boost_failed_libs=
432+
eval eval _boost_shrext=$shrext_cmds
432433
# Don't bother to ident the following nested for loops, only the 2
433434
# innermost ones matter.
434435
for boost_lib_ in $2; do
@@ -473,7 +474,7 @@ for boost_rtopt_ in $boost_rtopt '' -d; do
473474
(*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
474475
Boost_lib_LIBS="$boost_ldpath/lib$boost_lib.$libext" ;;
475476
(*) # No:
476-
Boost_lib_LIBS="$boost_ldpath/lib$boost_lib$shrext_cmds" ;;
477+
Boost_lib_LIBS="$boost_ldpath/lib$boost_lib$_boost_shrext" ;;
477478
esac
478479
# Don't waste time with libraries that don't exist
479480
test -e "$Boost_lib_LIBS" || continue

0 commit comments

Comments
 (0)