This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Run tst-fopenloc 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:24:35 -0700
- Subject: [PATCH] Run tst-fopenloc if $(build-shared) is yes
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
tst-fopenloc depends on shared localedata objects and tst-fopenloc.check
depends on tst-fopenloc. This patch enables them only if $(build-shared)
is yes. OK to install.
H.J.
---
* libio/Makefile: Include ../Makeconfig before tests.
(tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
only if $(build-shared) is yes.
diff --git a/libio/Makefile b/libio/Makefile
index c555dd0..68fc670 100644
--- a/libio/Makefile
+++ b/libio/Makefile
@@ -46,8 +46,10 @@ routines := \
\
libc_fatal fmemopen
+include ../Makeconfig
+
tests = tst_swprintf tst_wprintf tst_swscanf tst_wscanf tst_getwc tst_putwc \
- tst_wprintf2 tst-widetext test-fmemopen tst-ext tst-ext2 tst-fopenloc \
+ tst_wprintf2 tst-widetext test-fmemopen tst-ext tst-ext2 \
tst-fgetws tst-ungetwc1 tst-ungetwc2 tst-swscanf tst-sscanf \
tst-mmap-setvbuf bug-ungetwc1 bug-ungetwc2 tst-atime tst-eof \
tst-freopen bug-rewind bug-rewind2 bug-ungetc bug-fseek \
@@ -58,12 +60,13 @@ tests = tst_swprintf tst_wprintf tst_swscanf tst_wscanf tst_getwc tst_putwc \
tst-wmemstream1 tst-wmemstream2 \
bug-memstream1 bug-wmemstream1 \
tst-setvbuf1 tst-popen1 tst-fgetwc bug-wsetpos bug-fclose1
+ifeq (yes,$(build-shared))
+tests += tst-fopenloc
+endif
test-srcs = test-freopen
all: # Make this the default target; it will be defined in Rules.
-include ../Makeconfig
-
ifeq ($(versioning),yes)
routines += oldiofopen oldiofdopen oldiofclose oldiopopen oldpclose \
oldtmpfile oldiofgetpos oldiofgetpos64 oldiofsetpos \
@@ -170,7 +173,10 @@ shared-only-routines = oldiofopen oldiofdopen oldiofclose oldfileops \
include ../Rules
ifeq (no,$(cross-compiling))
-tests: $(objpfx)test-freopen.out $(objpfx)tst-fopenloc.check
+tests: $(objpfx)test-freopen.out
+ifeq (yes,$(build-shared))
+tests: $(objpfx)tst-fopenloc.check
+endif
endif
$(objpfx)test-freopen.out: test-freopen.sh $(objpfx)test-freopen