aboutsummaryrefslogtreecommitdiff
path: root/sunrpc
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2012-05-04 00:19:54 +0200
committerAndreas Schwab <schwab@linux-m68k.org>2012-05-10 10:51:25 +0200
commitda392631c9056d412daa5ba92b8e82a6951d4a87 (patch)
tree7bdf87aa27586242b0f0e9031460ec4cfd64538a /sunrpc
parent8115f29badfc170d8ffadf3982646dda406f5919 (diff)
downloadglibc-da392631c9056d412daa5ba92b8e82a6951d4a87.tar
glibc-da392631c9056d412daa5ba92b8e82a6951d4a87.tar.gz
glibc-da392631c9056d412daa5ba92b8e82a6951d4a87.tar.bz2
glibc-da392631c9056d412daa5ba92b8e82a6951d4a87.zip
Add dependency tracking for rpc-compat-routines
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/sunrpc/Makefile b/sunrpc/Makefile
index 48790f4da9..b4548d5ccd 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) $@ $^