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] Enable catgets tests if $(build-shared) is yes


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


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