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] Run tst-btowc tst-mbrtowc2 if $(build-shared) is yes


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


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