Open
Description
One issue BinaryProvider doesn't address is how to extract header-defined constants and structs to create corresponding Julia objects. This is a problem when package ABIs can vary depending on compile-time flags, e.g. SuiteSparse (https://github.com/JuliaLang/julia/issues/34725).
One trick used in the past was to generate a small C file that would print out the constants, but these won't run in the cross-compilation environment (JuliaPackaging/Yggdrasil#505).
One potential solution is to allow calling Clang.jl as part of the build process (and have it set up to link to the correct headers, etc)?