This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Run sunrpc tests if $(build-shared) is yes
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 10 Sep 2012 06:35:12 -0700
- Subject: [PATCH] Run sunrpc tests if $(build-shared) is yes
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
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