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