This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Run tst-btowc tst-mbrtowc2 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:25:36 -0700
- Subject: [PATCH] Run tst-btowc tst-mbrtowc2 if $(build-shared) is yes
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
tst-btowc tst-mbrtowc2 depend on shared localedata objects. This
patch enables them only if $(build-shared) is yes. OK to install?
Thanks.
H.J.
* wcsmbs/Makefile (tests): Add tst-btowc tst-mbrtowc2 only if
$(build-shared) is yes.
diff --git a/wcsmbs/Makefile b/wcsmbs/Makefile
index 7402ec9..66d3e2c 100644
--- a/wcsmbs/Makefile
+++ b/wcsmbs/Makefile
@@ -42,9 +42,12 @@ routines := wcscat wcschr wcscmp wcscpy wcscspn wcsdup wcslen wcsncat \
mbrtoc16 c16rtomb
strop-tests := wcscmp wmemcmp wcslen wcschr wcsrchr wcscpy
-tests := tst-wcstof wcsmbs-tst1 tst-wcsnlen tst-btowc tst-mbrtowc \
- tst-wcrtomb tst-wcpncpy tst-mbsrtowcs tst-wchar-h tst-mbrtowc2 \
+tests := tst-wcstof wcsmbs-tst1 tst-wcsnlen tst-mbrtowc \
+ tst-wcrtomb tst-wcpncpy tst-mbsrtowcs tst-wchar-h \
tst-c16c32-1 wcsatcliff $(addprefix test-,$(strop-tests))
+ifeq (yes,$(build-shared))
+tests += tst-btowc tst-mbrtowc2
+endif
include ../Rules
--
1.7.11.4