Add dependency tracking for rpc-compat-routines

This commit is contained in:
Andreas Schwab 2012-05-04 00:19:54 +02:00
parent 8115f29bad
commit da392631c9
2 changed files with 12 additions and 2 deletions

View file

@ -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.

View 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) $@ $^