From b30542fb71312ed7544a2d356a8fd589430090a5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 8 Mar 2004 21:31:23 +0000 Subject: Update. 2004-03-08 Ulrich Drepper * 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 . --- Makerules | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Makerules') 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))) \ -- cgit 1.4.1