Re: Location to specify C compiler option in C extension

Поиск
Список
Период
Сортировка
От Demitri Muna
Тема Re: Location to specify C compiler option in C extension
Дата
Msg-id 01DB0EC9-B077-48BC-8059-B3B7EE9FD63D@demitri.com
обсуждение исходный текст
Ответ на Re: Location to specify C compiler option in C extension  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi Tom,

PG_CPPFLAGS ought to work.  One point is that you need to set that before
including pgxs.mk; maybe it's an ordering problem?

On closer inspection, it was working, but the pg Makefile was specifically including “-Wdeclaration-after-statement” which I think was overriding the ‘-std=c99’ part. The line below fixed the problem.

PG_CPPFLAGS += -std=c99 -Wno-declaration-after-statement

Thanks, sorry for the noise.

Demitri

В списке pgsql-general по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: PQConsumeinput stuck on recv
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: Query error: could not resize shared memory segment