about summary refs log tree commit diff
path: root/timezone/Makefile
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-11-10 00:31:20 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-11-10 00:31:20 +0000
commit9ec6f8bd90e485c122af91f68ba3962380a9f6d4 (patch)
treecc3a2df6fd223e8aa87a9695a192b1b3897fd795 /timezone/Makefile
parent0aa8f8a17fdeebce1a87c0c2e664f47734505f61 (diff)
downloadglibc-9ec6f8bd90e485c122af91f68ba3962380a9f6d4.tar.gz
glibc-9ec6f8bd90e485c122af91f68ba3962380a9f6d4.tar.xz
glibc-9ec6f8bd90e485c122af91f68ba3962380a9f6d4.zip
Use glibc version information in zic and zdump.
Diffstat (limited to 'timezone/Makefile')
-rw-r--r--timezone/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/timezone/Makefile b/timezone/Makefile
index 49d3b9d472..87b03e2c5f 100644
--- a/timezone/Makefile
+++ b/timezone/Makefile
@@ -54,6 +54,13 @@ include ../Rules
 
 $(objpfx)zic: $(objpfx)scheck.o $(objpfx)ialloc.o
 
+$(objpfx)zic.o $(objpfx)zdump.o: $(objpfx)version.h
+
+$(objpfx)version.h: $(common-objpfx)config.make
+	echo 'static char const TZVERSION[]="$(PKGVERSION)$(version)";' \
+	    > $@.new
+	mv -f $@.new $@
+
 tz-cflags = -DTZDIR='"$(zonedir)"' \
 	    -DTZDEFAULT='"$(localtime-file)"' \
 	    -DTZDEFRULES='"$(posixrules-file)"' \