pgsql: Support cross compilation by compiling "zic" with a native

Поиск
Список
Период
Сортировка
Искать

pgsql: Support cross compilation by compiling "zic" with a native

От:
petere@svr1.postgresql.org (Peter Eisentraut)
Дата:
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql:
        configure (r1.441 -> r1.442)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/configure.diff?r1=1.441&r2=1.442)
        configure.in (r1.414 -> r1.415)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/configure.in.diff?r1=1.414&r2=1.415)
    pgsql/doc/src/sgml:
        installation.sgml (r1.238 -> r1.239)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/installation.sgml.diff?r1=1.238&r2=1.239)
    pgsql/src:
        Makefile.global.in (r1.214 -> r1.215)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/Makefile.global.in.diff?r1=1.214&r2=1.215)
    pgsql/src/timezone:
        Makefile (r1.17 -> r1.18)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/timezone/Makefile.diff?r1=1.17&r2=1.18)

Re: pgsql: Support cross compilation by compiling "zic"

От:
Neil Conway <neilc@samurai.com>
Дата:
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
FAQ