mirror of
https://github.com/bazel-contrib/rules_foreign_cc
synced 2024-12-03 02:52:58 +00:00
0cf751c053
* Make cc_toolchain_utils.bzl more reusable By using getattr, the helper functions in this file can be reused in rules that do not define all of the framework attributes, e.g. bootstrap rules. * Bootstrap make reproducibly on Linux and macOS Uses the Bazel C/C++ toolchain to bootstrap make and ensure that the resulting binary contains no absolute and thus non-hermetic paths. Building make reproducibly helps with remote caching and removes the dependency on a C compiler installed on the host.
17 lines
633 B
Diff
17 lines
633 B
Diff
diff --git Makefile.in Makefile.in
|
|
index 9535058..0b12e99 100644
|
|
--- Makefile.in
|
|
+++ Makefile.in
|
|
@@ -1042,8 +1042,8 @@ make_LDADD = $(LIBOBJS) $(GUILE_LIBS) lib/libgnu.a $(GETLOADAVG_LIBS) \
|
|
@LIBINTL@
|
|
|
|
AM_CPPFLAGS = -Isrc -I$(top_srcdir)/src -Ilib -I$(top_srcdir)/lib \
|
|
- -DLIBDIR=\"$(libdir)\" -DINCLUDEDIR=\"$(includedir)\" \
|
|
- -DLOCALEDIR=\"$(localedir)\" $(am__append_2)
|
|
+ -DLIBDIR=\".\" -DINCLUDEDIR=\"external/rules_foreign_cc/toolchains/make/include\" \
|
|
+ -DLOCALEDIR=\"external/rules_foreign_cc/toolchains/make/share/locale\" $(am__append_2)
|
|
AM_CFLAGS = $(GUILE_CFLAGS)
|
|
|
|
# Extra stuff to include in the distribution.
|
|
|