aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-09-13 10:58:06 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-09-13 10:58:06 -0400
commit3f3304408cb103745ee0722d303c526594a8046c (patch)
tree2070472f471f97fcbdb6cbff6b2a5318f3db0cc0 /src
parent8caf6132c7498b2b9400a5496a29e48c1c0aa516 (diff)
downloadpostgresql-3f3304408cb103745ee0722d303c526594a8046c.tar.gz
postgresql-3f3304408cb103745ee0722d303c526594a8046c.zip
Propagate with_system_tzdata setting into initdb build.
findtimezone.c needs to know this setting too. Per Peter Eisentraut.
Diffstat (limited to 'src')
-rw-r--r--src/bin/initdb/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/initdb/Makefile b/src/bin/initdb/Makefile
index 8bd1e6d3a9e..fee99bb31de 100644
--- a/src/bin/initdb/Makefile
+++ b/src/bin/initdb/Makefile
@@ -18,6 +18,11 @@ include $(top_builddir)/src/Makefile.global
override CPPFLAGS := -DFRONTEND -I$(libpq_srcdir) -I$(top_srcdir)/src/timezone $(CPPFLAGS)
+# use system timezone data?
+ifneq (,$(with_system_tzdata))
+override CPPFLAGS += '-DSYSTEMTZDIR="$(with_system_tzdata)"'
+endif
+
OBJS= initdb.o findtimezone.o localtime.o encnames.o pqsignal.o $(WIN32RES)
all: initdb