mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
When cross-compiling, allow and require an external zic program to be used
when --with-system-tzdata is not used. initial patch by Richard Evans
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
# -*-makefile-*-
|
||||
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.250 2009/01/05 09:54:12 petere Exp $
|
||||
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.251 2009/01/05 10:25:59 petere Exp $
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# All PostgreSQL makefiles include this file and use the variables it sets,
|
||||
@ -224,6 +224,7 @@ FLEX = @FLEX@
|
||||
FLEXFLAGS = @FLEXFLAGS@ $(LFLAGS)
|
||||
DTRACE = @DTRACE@
|
||||
DTRACEFLAGS = @DTRACEFLAGS@
|
||||
ZIC = @ZIC@
|
||||
|
||||
# Linking
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
# Makefile for the timezone library
|
||||
|
||||
# IDENTIFICATION
|
||||
# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.29 2008/02/19 15:29:58 petere Exp $
|
||||
# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.30 2009/01/05 10:25:59 petere Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@ -43,7 +43,7 @@ zic: $(ZICOBJS)
|
||||
|
||||
install: all installdirs
|
||||
ifeq (,$(with_system_tzdata))
|
||||
./zic -d '$(DESTDIR)$(datadir)/timezone' -p '$(POSIXRULES)' $(TZDATAFILES)
|
||||
$(if $(ZIC),$(ZIC),./zic) -d '$(DESTDIR)$(datadir)/timezone' -p '$(POSIXRULES)' $(TZDATAFILES)
|
||||
endif
|
||||
$(MAKE) -C tznames $@
|
||||
|
||||
|
Reference in New Issue
Block a user