Thank you @cvine for experimenting! What you’ve proposed works fine for me. I just put a snippet for history.
LIB=`ocamlc -where`
libtool -static -o libexport.a \
${LIB}/libasmrun.a \
${LIB}/libunix.a \
${LIB}/libthreadsnat.a \
${LIB}/../lwt/unix/liblwt_unix_stubs.a \
lib.o