]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add dependency tracking for rpc-compat-routines
authorAndreas Schwab <schwab@linux-m68k.org>
Thu, 3 May 2012 22:19:54 +0000 (00:19 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Thu, 10 May 2012 08:51:25 +0000 (10:51 +0200)
ChangeLog
sunrpc/Makefile

index 0e992cb8101b91b5bee3d1a5c560707a1012ca60..7db579c1536382aec741f2ed6cc44c58558d70b2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
+       $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
+       after this.
+
 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
 
        * stdlib/longlong.h: Updated from GCC.
index 48790f4da95720961c8212ec4b58fc1a53921ac9..b4548d5ccda0b2db1fcaeffc3042a4701b3094fc 100644 (file)
@@ -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) $@ $^