Building a static rustc


#1

Hi,

What’s the recipe for building a static rustc binary similar to the stage0 snapshot?

Thx


#2

I am also interested in this. Does anyone know?


#3

Haven’t tried it yet but it seems it’s provided in mk/snap.mk, e.g:

make snap-stage3-H-i686-unknown-linux-gnu

EDIT: Yes, that was it and --enable-llvm-static-stdcpp comes in rather handy to get rid of libstdc++.so dependency.