Closed froydnj closed 1 year ago
r? @reese
I think this + a similar patch for the main rubyfmt
binary will make it so we can cross-compile to aarch64-linux-gnu without having to worry about the details of what libraries are available in the cross-compilation environment. cc @ilyailya
We currently statically determine whether
libz
andlibcrypt
should be linked into therubyfmt
binary. A better approach (since Ruby can successfully be compiled without these libraries present, at the cost of functionality thatrubyfmt
doesn't use) is to query whether Ruby found these libraries on the system and output the necessary cargo directives based on that information.