This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Enable catgets 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:14:09 -0700
- Subject: [PATCH] Enable catgets tests if $(build-shared) is yes
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
cat files aren't available if shared library is disabled. This patch
enables catgets tests only if $(build-shared) is yes. OK to install?
Thanks.
H.J.
* catgets/Makefile (tests): Enabled only if $(build-shared) is
yes.
diff --git a/catgets/Makefile b/catgets/Makefile
index c11edd3..ded62ab 100644
--- a/catgets/Makefile
+++ b/catgets/Makefile
@@ -26,7 +26,9 @@ others = gencat
install-bin = gencat
extra-objs = $(gencat-modules:=.o)
+ifeq ($(build-shared),yes)
tests = tst-catgets
+endif
test-srcs = test-gencat
gencat-modules = xmalloc
@@ -50,7 +52,7 @@ generated-dirs = de
tst-catgets-ENV = NLSPATH="$(objpfx)%l/%N.cat" LANG=de
-ifneq ($(cross-compiling),yes)
+ifeq ($(build-shared)$(cross-compiling),yesno)
tests: $(objpfx)de/libc.cat $(objpfx)test1.cat $(objpfx)test2.cat \
$(objpfx)test-gencat.out
# This test just checks whether the program produces any error or not.
--
1.7.11.4