Skip to content

Commit 6e2880b

Browse files
[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.
1 parent 57f014b commit 6e2880b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3157,6 +3157,7 @@ AC_SUBST(EXTOBJS)
31573157
[hiuxmpp], [ : ${LDSHARED='$(LD) -r'}],
31583158
[atheos*], [ : ${LDSHARED='$(CC) -shared'}
31593159
rb_cv_dlopen=yes],
3160+
[wasi*], [ : ${LDSHARED='$(LD) -shared -Xlinker --export-dynamic'}],
31603161
[ : ${LDSHARED='$(LD)'}])
31613162
AC_MSG_RESULT($rb_cv_dlopen)
31623163
}

0 commit comments

Comments
 (0)