[PATCH] Run sunrpc tests if $(build-shared) is yes
H.J. Lu
hongjiu.lu@intel.com
Mon Sep 10 13:35:00 GMT 2012
Hi,
Those sunrpc tests depend on DSO. This patch enables them only if
$(build-shared) is yes. OK to install?
Thanks.
H.J.
----
* sunrpc/Makefile (tests): Run only if $(build-shared) is yes.
(xtests): Run only if $(build-shared) is yes.
diff --git a/sunrpc/Makefile b/sunrpc/Makefile
index 48a458a..cc4515e 100644
--- a/sunrpc/Makefile
+++ b/sunrpc/Makefile
@@ -96,12 +96,14 @@ others += rpcgen
all: # Make this the default target; it will be defined in Rules.
+ifeq (yes,$(build-shared))
tests = tst-xdrmem tst-xdrmem2
xtests := tst-getmyaddr
ifeq ($(have-thread-library),yes)
xtests += thrsvc
endif
+endif
headers += $(rpcsvc:%.x=rpcsvc/%.h)
extra-libs := librpcsvc
More information about the Libc-alpha
mailing list