This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add dependency tracking for rpc-compat-routines

I just noticed that the include ../Rules line was previously moved up
due to build problems when starting from scratch (before-compile is only
defined in Makerules, and is used to create the build subdir), so I had
to split up the block to move it in the middle.


	* sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
	$(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
	after this.

diff --git a/sunrpc/Makefile b/sunrpc/Makefile
index 48790f4..b4548d5 100644
--- a/sunrpc/Makefile
+++ b/sunrpc/Makefile
@@ -107,12 +107,16 @@ librpcsvc-inhibit-o = .os # Build no shared rpcsvc library.
 omit-deps = $(librpcsvc-routines)
-include ../Rules
 ifeq (yes,$(build-shared))
 rpc-compat-routines = $(addprefix compat-,$(need-export-routines))
 rpc-compat-routines.os = $(addprefix $(objpfx), \
 				     $(addsuffix .os,$(rpc-compat-routines)))
+extra-objs += $(addsuffix .os,$(rpc-compat-routines))
+include ../Rules
+ifeq (yes,$(build-shared))
 subdir_lib: $(objpfx)librpc_compat_pic.a
 $(objpfx)librpc_compat_pic.a: $(rpc-compat-routines.os)
 	$(AR) cr$(verbose) $@ $^

Andreas Schwab,
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]