summary refs log tree commit diff
path: root/Makerules
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 /Makerules
parentf79c3f28a601f197b89409ff3aa0d3c3949b8210 (diff)
downloadglibc-b30542fb71312ed7544a2d356a8fd589430090a5.tar.gz
glibc-b30542fb71312ed7544a2d356a8fd589430090a5.tar.xz
glibc-b30542fb71312ed7544a2d356a8fd589430090a5.zip
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 'Makerules')
-rw-r--r--Makerules11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makerules b/Makerules
index 1018b43b3e..970d1a4e32 100644
--- a/Makerules
+++ b/Makerules
@@ -661,6 +661,17 @@ ifdef extra-libs
 extra-libs-left := $(extra-libs)
 include $(patsubst %,$(..)extra-lib.mk,$(extra-libs))
 endif
+
+
+# The makefile may define $(modules-names) # to build additional
+# modules.
+ifdef modules-names
+# extra-lib.mk is included once for each extra lib to define rules
+# to build it, and to add its objects to the various variables.
+# During its evaluation, $(lib) is set to the name of the library.
+extra-modules-left := $(modules-names)
+include $(patsubst %,$(..)extra-modules.mk,$(modules-names))
+endif
 
 +depfiles := $(sources:.c=.d) \
 	     $(patsubst %.o,%.d,$(filter %.o,$(extra-objs:.os=.o))) \