diff --git a/src/bin/gen-link-flags.sh b/src/bin/gen-link-flags.sh index 35c1dfe2d..a6d948f73 100755 --- a/src/bin/gen-link-flags.sh +++ b/src/bin/gen-link-flags.sh @@ -22,7 +22,7 @@ case "$LINK_MODE" in FLAGS="-noautolink" # Note: for OCaml 5, use -lcamlstrnat and -lunixnat and mind zlib # https://github.com/ocaml/ocaml/issues/12562 - CCLIB="-lzarith -lunix" + CCLIB="-lbase_stubs -lzarith -lunix" LIBS="gmp" case "$OS" in linux)