summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-09-28 20:33:47 +0200
committerRichard Braun <rbraun@sceen.net>2018-09-28 20:34:32 +0200
commitd832f1a58cd36a390148a1ba7258f77b2003fecc (patch)
treeb4704c7f58e87f87442efa34c951c3f61d663f0c /Makefile
parent5184d7868baf5d87012f4aa352eb89037f8ce22c (diff)
Makefile: explain the purpose of sorting initialization operations
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 996f0dbf..94db3b6c 100644
--- a/Makefile
+++ b/Makefile
@@ -330,6 +330,8 @@ endef
.x15.sorted_init_ops: $(filter %.c,$(x15_SOURCES)) include/generated/autoconf.h
$(call gen_sorted_init_ops)
+# Adding the sorted initialization operations as a dependency allows checking
+# for loops at build time.
x15_DEPS := $(x15_LDS) .x15.sorted_init_ops
# Compiling produces dependency rules as a side-effect. When the dependency