Re: Location to specify C compiler option in C extension

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Location to specify C compiler option in C extension
Дата
Msg-id 15098.1519412984@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Location to specify C compiler option in C extension  (Demitri Muna <postgresql@demitri.com>)
Ответы Re: Location to specify C compiler option in C extension  (Demitri Muna <postgresql@demitri.com>)
Список pgsql-general
Demitri Muna <postgresql@demitri.com> writes:
> I’m writing a C extension and have successfully based my Makefile on existing templates. This conveniently hides the
detailsof the full Makefile provided by "pg_config --pgxs”. Which variable would be the appropriate one to specify the
‘-std=c99’compiler flag? I’ve tried many and still get warnings that this flag should suppress (specifically, "ISO C90
forbidsmixed declarations and code”). These are the variables I currently define: 

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

            regards, tom lane


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

Предыдущее
От: Andre Oliveira Freitas
Дата:
Сообщение: Re: PQConsumeinput stuck on recv
Следующее
От: Andres Freund
Дата:
Сообщение: Re: PQConsumeinput stuck on recv