Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch rules_foreign_cc to not link bazel default libraries into GNUMa…
…ke (#37632) When upstream `rules_foreign_cc` builds its own GNUMake, it injects bazel's default libraries into `LDFLAGS`, which causes trouble on Darwin in newer versions of Bazel that added `-lm` to the list of default libraries. As explained nicely in bazel-contrib/rules_foreign_cc#1227, Apple's libm re-exports a bunch of symbols and, due to linker argument order, clobbers some symbols from make itself. We don't need any of the default libraries in GNUMake, so disable the feature to link them. Risk Level: low Testing: CI --------- Signed-off-by: Alejandro R Sedeño <[email protected]> Signed-off-by: Alejandro R. Sedeño <[email protected]>
- Loading branch information