From 3f3304408cb103745ee0722d303c526594a8046c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 13 Sep 2011 10:58:06 -0400 Subject: [PATCH] Propagate with_system_tzdata setting into initdb build. findtimezone.c needs to know this setting too. Per Peter Eisentraut. --- src/bin/initdb/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/initdb/Makefile b/src/bin/initdb/Makefile index 8bd1e6d3a9..fee99bb31d 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 -- GitLab