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

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: pgsql: Support cross compilation by compiling "zic"
Дата
Msg-id 42C8A553.3020602@samurai.com
обсуждение исходный текст
Ответ на pgsql: Support cross compilation by compiling "zic" with a native  (petere@svr1.postgresql.org (Peter Eisentraut))
Список 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 по дате отправления:

Предыдущее
От: neilc@svr1.postgresql.org (Neil Conway)
Дата:
Сообщение: pgsql: Fix build break for out of tree (vpath) builds, induced by recent
Следующее
От: momjian@svr1.postgresql.org (Bruce Momjian)
Дата:
Сообщение: pgsql: Update wording: < Currently, to protect against partial disk