Skip to content

dart compile exe support static linking of C code #47718

Open
@dcharkes

Description

@dcharkes

dart compile exe enables compiling Dart source code to a standalone executable.

It would be nice if we could link in static libraries in this process so that we can use DynamicLibrary.executable() to look up the symbols.

Current workaround: Use shared libraries, use DynamicLibrary.open() with a relative path, and ship a folder with the dart compile exe executable and the shared libraries (*.so / *.dll / *.dylib).

Technical work that needs to happen for this:

(cc @mkustermann, @cskau-g I don't think we had an issue tracking this yet.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.library-ffi

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions