From: Tom Lane Date: Tue, 13 Sep 2011 14:58:06 +0000 (-0400) Subject: Propagate with_system_tzdata setting into initdb build. X-Git-Tag: REL9_2_BETA1~1095 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f3304408cb103745ee0722d303c526594a8046c;p=thirdparty%2Fpostgresql.git Propagate with_system_tzdata setting into initdb build. findtimezone.c needs to know this setting too. Per Peter Eisentraut. --- 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