This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
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.
Andreas.
* 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)
endif
-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))
+endif
+
+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) $@ $^
--
1.7.10.1
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."