summaryrefslogtreecommitdiff
path: root/extra-modules.mk
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-03-08 21:31:23 +0000
committerUlrich Drepper <drepper@redhat.com>2004-03-08 21:31:23 +0000
commitb30542fb71312ed7544a2d356a8fd589430090a5 (patch)
tree4494c2147be2e250c64236eadc0b65a677094243 /extra-modules.mk
parentf79c3f28a601f197b89409ff3aa0d3c3949b8210 (diff)
downloadglibc-b30542fb71312ed7544a2d356a8fd589430090a5.tar.gz
Update.
2004-03-08 Ulrich Drepper <drepper@redhat.com> * Makerules: Use extra-modules.mk if modules-names is defined. * extra-modules.mk: New file. * dlfcn/Makefile (CPPFLAGS-modcxaatexit.c): Removed. * elf/Makefile (CFLAGS-interp.c): Add -DNOT_IN_libc=1. * csu/Makefile ($(objpfx)version-info.h): Pass -DNOT_IN_libc=1 to compiler. * Makefile (distribute): Add symbol-hacks.h. * sysdeps/generic/symbol-hacks.h: New file. * sysdeps/wordsize-32/symbol-hacks.h: New file. * sysdeps/wordsize-32/divdi3.c: Define *_internal aliases for __divdi3, __moddi3, __udivdi3, and __umoddi3. * include/libc-symbols.h: Include <symbol-hacks.h>.
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