JuliaLang / PackageCompiler.jl

Compile your Julia Package
https://julialang.github.io/PackageCompiler.jl/dev/
MIT License
1.43k stars 192 forks source link

Add option to output one statically linked executable, like C #661

Open AgnivaChaudhuri opened 2 years ago

AgnivaChaudhuri commented 2 years ago

Julia is an awesome language, the only thing holding me back from using it for basically everything is statically compiling an executable. Currently there is creating a .so file, or creating an app bundle, but no option to generate a single static executable like passing a -static flag.

Creating a single statically compiled/linked executable is very nice for conveniently putting the executable on machines without Julia, reducing dependencies, etc.

This would be a very nice addition, maybe the -static flag could be passed to gcc?

JinyanTeng commented 5 months ago

I have the same idea about that. @KristofferC