configure.ac: Append POSTLINK
to LINK_SO
for all platforms
The `POSTLINK` variable had been used only for darwin platforms, but it's now used for WebAssembly/WASI as well. To make shared extension libraries properly post-processed, we need to append `POSTLINK` to `LINK_SO` but it was done only for darwin platforms. This commit generalizes the appending to all platforms.
This commit is contained in:
parent
5a4cd732f0
commit
b000e7bb74
11
configure.ac
11
configure.ac
@ -1107,10 +1107,6 @@ main()
|
||||
AS_IF([test -n "$dsymutil"], [
|
||||
POSTLINK="$dsymutil \$@ 2>/dev/null${POSTLINK:+; $POSTLINK}"
|
||||
])
|
||||
AS_IF([test -n "${POSTLINK}"], [
|
||||
LINK_SO="$LINK_SO
|
||||
\$(POSTLINK)"
|
||||
])
|
||||
AC_CHECK_HEADERS(crt_externs.h, [], [], [
|
||||
#include <crt_externs.h>
|
||||
])
|
||||
@ -1275,6 +1271,13 @@ main()
|
||||
[ LIBS="-lm $LIBS"])
|
||||
: ${ORIG_LIBS=$LIBS}
|
||||
|
||||
AS_IF([test -n "${POSTLINK}"], [
|
||||
# NOTE: A (part of) link commands used link shared extension libraries. If
|
||||
# the first line of the value is empty, mkmf prepends default link steps.
|
||||
LINK_SO="$LINK_SO
|
||||
\$(POSTLINK)"
|
||||
])
|
||||
|
||||
AS_IF([test -n "${rb_there_is_in_fact_no_gplusplus_but_autoconf_is_cheating_us}"], [
|
||||
AC_MSG_NOTICE([Test skipped due to lack of a C++ compiler.])
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user