about summary refs log tree commit diff
path: root/extra-modules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'extra-modules.mk')
-rw-r--r--extra-modules.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/extra-modules.mk b/extra-modules.mk
new file mode 100644
index 0000000000..c7ed850995
--- /dev/null
+++ b/extra-modules.mk
@@ -0,0 +1,9 @@
+# This file is included several times in a row, once
+# for each element of $(modules-names).  $(extra-modules-left)
+# is initialized first to $(modules-names) so that with each
+# inclusion, we advance $(module) to the next name.
+
+module := $(firstword $(extra-modules-left))
+extra-modules-left := $(filter-out $(module),$(extra-modules-left))
+
+CPPFLAGS-$(module).c += -DNOT_IN_libc