From 1cba4036b6f5e798114c7cc77c788839c89e3b3c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 18 Sep 2015 14:00:05 -0400 Subject: timezone: add a configure flag to disable program install Some distros build+install the timezone tools (zic/zdump/tzselect) outside of glibc and use the upstream package directly. Add a configure flag to glibc so they can disable install of those tools. This allows tests to run & pass regardless of the configure flag. Only the install of them is impacted. --- timezone/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'timezone') diff --git a/timezone/Makefile b/timezone/Makefile index bfb3463373..a0b8adb5a6 100644 --- a/timezone/Makefile +++ b/timezone/Makefile @@ -27,15 +27,17 @@ extra-objs := scheck.o ialloc.o others := zdump zic tests := test-tz tst-timezone tst-tzset -install-sbin := zic zdump - generated-dirs += testdata -install-bin-script = tzselect generated += tzselect testdata = $(objpfx)testdata +ifeq ($(enable-timezone-tools),yes) +install-sbin := zic zdump +install-bin-script = tzselect +endif + ifeq ($(run-built-tests),yes) # List zones generated by separate commands running zic on the host. # Each such zic run counts as a separate test. -- cgit v1.2.3