[wasm-pic] Add `LDSHARED` definition for WASI platform

We are going to add dynamic linking support for WASI platform. The
`LDSHARED` definition is used to link shared libraries for building ruby
binaries and extensions.
This commit is contained in:
Yuta Saito 2023-12-18 17:59:52 +00:00
Родитель 57f014b2fa
Коммит 6e2880b388
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -3157,6 +3157,7 @@ AC_SUBST(EXTOBJS)
[hiuxmpp], [ : ${LDSHARED='$(LD) -r'}], [hiuxmpp], [ : ${LDSHARED='$(LD) -r'}],
[atheos*], [ : ${LDSHARED='$(CC) -shared'} [atheos*], [ : ${LDSHARED='$(CC) -shared'}
rb_cv_dlopen=yes], rb_cv_dlopen=yes],
[wasi*], [ : ${LDSHARED='$(LD) -shared -Xlinker --export-dynamic'}],
[ : ${LDSHARED='$(LD)'}]) [ : ${LDSHARED='$(LD)'}])
AC_MSG_RESULT($rb_cv_dlopen) AC_MSG_RESULT($rb_cv_dlopen)
} }