This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Run nss DSO 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:37:16 -0700
- Subject: [PATCH] Run nss DSO tests if $(build-shared) is yes
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
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