Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 85b7e83

Browse files
committed
Fix zic compiler to use pg version.
Move timezone database to share/timezone.
1 parent 04d426b commit 85b7e83

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/timezone/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
# Makefile for the timezone library
55

66
# IDENTIFICATION
7-
# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.6 2004/04/30 20:01:39 momjian Exp $
7+
# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.7 2004/04/30 20:23:28 momjian Exp $
88
#
99
#-------------------------------------------------------------------------
1010

1111
subdir = src/timezone
1212
top_builddir = ../..
1313
include $(top_builddir)/src/Makefile.global
1414

15-
override CPPFLAGS += -DPKGLIBDIR=\"$(pkglibdir)\"
15+
override CPPFLAGS += -DPGDATADIR=\"$(datadir)\"
1616

1717
OBJS= asctime.o difftime.o localtime.o pgtz.o
1818
ZICOBJS= zic.o ialloc.o scheck.o localtime.o asctime.o pgtz.o
@@ -30,7 +30,7 @@ zic: $(ZICOBJS)
3030
$(CC) $(CFLAGS) $(ZICOBJS) $(LDFLAGS) $(LIBS) -o $@$(X)
3131

3232
install: zic
33-
./zic -d $(pkglibdir)/../timezone $(TZDATAFILES)
33+
./zic -d $(DESTDIR)$(datadir)/timezone $(TZDATAFILES)
3434

3535
clean distclean maintainer-clean:
3636
rm -f SUBSYS.o $(OBJS) $(ZICOBJS)

src/timezone/pgtz.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.2 2004/04/30 14:24:14 momjian Exp $
9+
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.3 2004/04/30 20:23:28 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -23,7 +23,7 @@ char *pgwin32_TZDIR(void) {
2323
return tzdir;
2424

2525
#ifndef WIN32
26-
StrNCpy(tzdir,PKGLIBDIR, MAXPGPATH);
26+
StrNCpy(tzdir, PGDATADIR, MAXPGPATH);
2727
#else
2828
if (GetModuleFileName(NULL,tzdir,MAXPGPATH) == 0)
2929
return NULL;
@@ -35,7 +35,7 @@ char *pgwin32_TZDIR(void) {
3535
else
3636
*p = '\0';
3737

38-
strcat(tzdir,"/../timezone");
38+
strcat(tzdir,"/timezone");
3939

4040
done_tzdir=1;
4141
return tzdir;

0 commit comments

Comments
 (0)