Rules
Philip Blundell
pb@nexus.co.uk
Fri Nov 27 01:54:00 GMT 1998
Does anybody see a problem with this patch? The intention is to allow
Makerules to call extra-lib.mk before mentioning $(others), so that if a
program in $(others) depends on a library in the same directory's
$(extra-libs-others) the library will get built first. The particular case in
point is nss/getent when compiling with static NSS.
p.
1998-11-26 Philip Blundell <pb@nexus.co.uk>
* Rules: Include Makerules before defining `others' goal, so that
libraries are built before the programs that depend on them.
Index: Rules
===================================================================
RCS file: /home/cvs/repository/gnu/libc/Rules,v
retrieving revision 1.15
diff -u -r1.15 Rules
--- Rules 1998/10/19 12:06:55 1.15
+++ Rules 1998/11/26 17:50:07
@@ -39,15 +39,6 @@
.PHONY: all
all: objs lib others
-ifeq ($(build-programs),yes)
-others: $(addprefix $(objpfx),$(extra-objs) \
- $(install-lib) $(install-bin) \
- $(install-rootsbin) $(install-sbin))
-else
-others: $(addprefix $(objpfx),$(extra-objs) \
- $(install-lib))
-endif
-
ifneq "$(findstring env,$(origin headers))" ""
headers :=
endif
@@ -61,6 +52,15 @@
endif
include ../Makerules
+
+ifeq ($(build-programs),yes)
+others: $(addprefix $(objpfx),$(extra-objs) \
+ $(install-lib) $(install-bin) \
+ $(install-rootsbin) $(install-sbin))
+else
+others: $(addprefix $(objpfx),$(extra-objs) \
+ $(install-lib))
+endif
.PHONY: subdir_lib
subdir_lib: lib-noranlib
More information about the Libc-hacker
mailing list