Skip to content

Commit 0cef7dc

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 f4f52b8 commit 0cef7dc

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
@@ -430,6 +430,7 @@ dnl start the for loops).
430430
[AC_MSG_ERROR([cannot compile a test that uses Boost $1])])
431431
ac_objext=$boost_save_ac_objext
432432
boost_failed_libs=
433+
eval eval _boost_shrext=$shrext_cmds
433434
# Don't bother to ident the following nested for loops, only the 2
434435
# innermost ones matter.
435436
for boost_lib_ in $2; do
@@ -474,7 +475,7 @@ for boost_rtopt_ in $boost_rtopt '' -d; do
474475
(*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
475476
Boost_lib_LIBS="$boost_ldpath/lib$boost_lib.$libext" ;;
476477
(*) # No:
477-
Boost_lib_LIBS="$boost_ldpath/lib$boost_lib$shrext_cmds" ;;
478+
Boost_lib_LIBS="$boost_ldpath/lib$boost_lib$_boost_shrext" ;;
478479
esac
479480
# Don't waste time with libraries that don't exist
480481
test -e "$Boost_lib_LIBS" || continue

0 commit comments

Comments
 (0)