Open therealjasonkenney opened 1 year ago
I don't know if this will help, but for alpine you almost always need:
ENV RUSTFLAGS="-C target-feature=-crt-static"
before you start compiling anything. Give that a shot. Offhand I don't know if plrustc/build.sh
might need to be updated or if you can handle it directly in your Dockerfile.
Thanks, I managed to get it all compiled, mostly by not using plrustc/build.sh
and manually adding a json file to postgrestd. However a new problem arrises, how do I get those rust flags to be used when Postgres compiles a rust function?
Proper support would involve threading full support for a musl libc distro in all locations.
I get this output when running the build script for plrustc:
I looked in the library path, and indeed many rlibs are missing.
pgrx, plrust both compile without errors. Just plrustc breaks.