pg_query-ocaml icon indicating copy to clipboard operation
pg_query-ocaml copied to clipboard

fix(x-compilation): portable `ar`

Open anmonteiro opened this issue 2 years ago • 1 comments

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.

anmonteiro avatar May 01 '23 05:05 anmonteiro

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.

anmonteiro avatar May 01 '23 05:05 anmonteiro