From: Andreas Schwab Date: Thu, 3 May 2012 22:19:54 +0000 (+0200) Subject: Add dependency tracking for rpc-compat-routines X-Git-Tag: glibc-2.16-tps~434 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da392631c9056d412daa5ba92b8e82a6951d4a87;p=thirdparty%2Fglibc.git Add dependency tracking for rpc-compat-routines --- diff --git a/ChangeLog b/ChangeLog index 0e992cb8101..7db579c1536 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-05-10 Andreas Schwab + + * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add + $(addsuffix .os,$(rpc-compat-routines)). Move include ../Rules + after this. + 2012-05-09 H.J. Lu * stdlib/longlong.h: Updated from GCC. diff --git a/sunrpc/Makefile b/sunrpc/Makefile index 48790f4da95..b4548d5ccda 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) $@ $^