This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Run sunrpc tests if $(build-shared) is yes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]