With this change, libelf becomes buildable with the host installed gcc.
How this works:
bazel is configured to use an hermetic version of llvm clang, downloaded from the llvm repo.
the libelf rule is passed parameters so we manually override the CC, AR, ... variables configured by bazel to use clang to instead point to a host installed version of gcc.
With this change, the build is no longer hermetic, gcc, m4, make are required to be installed on the host. Follow up changes will make the build hermetic again.
This is PR 1 of N to fix the build environment.
With this change, libelf becomes buildable with the host installed gcc.
How this works:
With this change, the build is no longer hermetic, gcc, m4, make are required to be installed on the host. Follow up changes will make the build hermetic again.