With respect to static libraries emscripten works just like your native clang/gcc toolchain. You can create static libraries using the `emar` tool which is a direct replacement to the normal `ar` tool. You can then link your static libraries by directly specifying them on the command line, or by using the `-l` + `-L` link flags (just like the native toolchain).
On Fri, Nov 25, 2022 at 1:16 AM Alessio Mochi <[email protected]> wrote: > Hello, > it's possibile create a static library with emscripten to avoid to > recompile every time > a common code? If it's possible can explain me how do it on linux? > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/emscripten-discuss/01e1ccb8-8132-4a89-a555-257184628223n%40googlegroups.com > <https://groups.google.com/d/msgid/emscripten-discuss/01e1ccb8-8132-4a89-a555-257184628223n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAL_va29_5kSq%2B5YumwUfBxDHVfy6-c-0ck%2BbLQ9xr0q0kNyWtg%40mail.gmail.com.
