pg_query-ocaml
pg_query-ocaml copied to clipboard
fix(x-compilation): portable `ar`
In cross-compilation scenarios, CC and AR will have a prefix like x86_64-unknown-linux-musl-.
In those cases, $AR will be set to the correct program, which we should use.
I fixed this in https://github.com/nix-ocaml/nix-overlays/commit/5a70f0b770234ff17ceddb49ca2b02e8b1516dc1 for myself and tested it in a program that cross-compiles to a static musl program.