Re: pgsql: Support cross compilation by compiling "zic" - Mailing list pgsql-committers

From Neil Conway
Subject Re: pgsql: Support cross compilation by compiling "zic"
Date
Msg-id 42C8A553.3020602@samurai.com
Whole thread Raw
In response to pgsql: Support cross compilation by compiling "zic" with a native  (petere@svr1.postgresql.org (Peter Eisentraut))
List pgsql-committers
Peter Eisentraut wrote:
> Support cross compilation by compiling "zic" with a native compiler.  This
> relies on the output of zic being platform independent, but that is
> currently the case.

This breaks out of tree (vpath) builds. Attached is a patch that fixes
the problem -- committed to HEAD.

-Neil
Index: src/timezone/Makefile
===================================================================
RCS file: /var/lib/cvs/pgsql/src/timezone/Makefile,v
retrieving revision 1.18
diff -c -r1.18 Makefile
*** src/timezone/Makefile    3 Jul 2005 18:54:28 -0000    1.18
--- src/timezone/Makefile    4 Jul 2005 02:43:43 -0000
***************
*** 12,18 ****
  top_builddir = ../..
  include $(top_builddir)/src/Makefile.global

! override CPPFLAGS := $(CPPFLAGS)

  # files to build into backend
  OBJS= localtime.o strftime.o pgtz.o
--- 12,18 ----
  top_builddir = ../..
  include $(top_builddir)/src/Makefile.global

! override CPPFLAGS := $(CPPFLAGS) -I$(srcdir)

  # files to build into backend
  OBJS= localtime.o strftime.o pgtz.o

pgsql-committers by date:

Previous
From: neilc@svr1.postgresql.org (Neil Conway)
Date:
Subject: pgsql: Fix build break for out of tree (vpath) builds, induced by recent
Next
From: momjian@svr1.postgresql.org (Bruce Momjian)
Date:
Subject: pgsql: Update wording: < Currently, to protect against partial disk