[PATCH] Run nss DSO tests if $(build-shared) is yes
H.J. Lu
hongjiu.lu@intel.com
Mon Sep 10 13:37:00 GMT 2012
Hi,
This patch enables nss DSO tests only if $(build-shared) is yes. OK
to install?
Thanks.
H.J.
---
* nss/Makefile (tests): Add tst-nss-test1 only if
$(build-shared) is yes.
($(objpfx)/libnss_test1.so$(libnss_test1.so-version)): Define
if libnss_test1.so-version is defined.
diff --git a/nss/Makefile b/nss/Makefile
index a272ebe..4507c9f 100644
--- a/nss/Makefile
+++ b/nss/Makefile
@@ -38,7 +38,10 @@ install-bin := getent makedb
makedb-modules = xmalloc hash-string
extra-objs += $(makedb-modules:=.o)
-tests = test-netdb tst-nss-test1
+tests = test-netdb
+ifeq (yes,$(build-shared))
+tests += tst-nss-test1
+endif
xtests = bug-erange
include ../Makeconfig
@@ -111,6 +114,8 @@ CFLAGS-nss_test1.c = -DNOT_IN_libc=1
$(objpfx)/libnss_test1.so: $(objpfx)nss_test1.os $(common-objpfx)libc.so \
$(common-objpfx)libc_nonshared.a
$(build-module)
+ifdef libnss_test1.so-version
$(objpfx)/libnss_test1.so$(libnss_test1.so-version): $(objpfx)/libnss_test1.so
$(make-link)
+endif
$(objpfx)tst-nss-test1.out: $(objpfx)/libnss_test1.so$(libnss_test1.so-version)
--
1.7.11.4
More information about the Libc-alpha
mailing list