Docu question

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

Docu question

От:
Michael Meskes <meskes@postgresql.org>
Дата:
In manage-ag.sgml our docs says:

[...]   risk. To allow it, you must compile PostgreSQL</> with   the C preprocessor macro ALLOW_ABSOLUTE_DBPATHS</>   defined. One way to do this is to run the compilation step like   this:

gmake CPPFLAGS=-DALLOW_ABSOLUTE_DBPATHS all

[...]

I wonder if there's a reason to suggest this gmake call. After all it
makes gmake disregard the CPPFLAGS settings in the Makefile. This for
instance breaks ecpg compilation on Linux as -D_GNU_SOURCE as defined in the
Makefiles is needed for LONG_LONG_MIN.

I think we should either change the docs or start using "override" in
the Makefiles.

Michael

-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

Re: Docu question

От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
Michael Meskes wrote:
> In manage-ag.sgml our docs says:
> 
> [...]
>     risk. To allow it, you must compile PostgreSQL</> with
>     the C preprocessor macro ALLOW_ABSOLUTE_DBPATHS</>
>     defined. One way to do this is to run the compilation step like
>     this:
> 
> gmake CPPFLAGS=-DALLOW_ABSOLUTE_DBPATHS all
> 
> [...]
> 
> I wonder if there's a reason to suggest this gmake call. After all it
> makes gmake disregard the CPPFLAGS settings in the Makefile. This for
> instance breaks ecpg compilation on Linux as -D_GNU_SOURCE as defined in the
> Makefiles is needed for LONG_LONG_MIN.
> 
> I think we should either change the docs or start using "override" in
> the Makefiles.

Agreed. This is a problem.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610) 359-1001 +  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

FAQ