[PATCH] Enable catgets tests if $(build-shared) is yes
H.J. Lu
hongjiu.lu@intel.com
Mon Sep 10 13:14:00 GMT 2012
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
More information about the Libc-alpha
mailing list