Re: How to use Makefile - pgxs without gcc -O2 ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to use Makefile - pgxs without gcc -O2 ?
Дата
Msg-id 13810.1404834337@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to use Makefile - pgxs without gcc -O2 ?  (geohas <lists@hasibether.at>)
Ответы Re: How to use Makefile - pgxs without gcc -O2 ?  (geohas <lists@hasibether.at>)
Список pgsql-hackers
geohas <lists@hasibether.at> writes:
> is there any hint to tell pgxs to compile with gcc -O0 (CFLAGS) ?

I tend to use
make PROFILE=-O0

which relies on knowing that PG's make rules append $(PROFILE) to CFLAGS.
Alternatively you could just override CFLAGS:
make CFLAGS="whatever"

but this requires knowing exactly what configure put into CFLAGS so
that you don't remove any flags that you still want.
        regards, tom lane



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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: [BUGS] LEFT JOINs not optimized away when not needed
Следующее
От: geohas
Дата:
Сообщение: Re: How to use Makefile - pgxs without gcc -O2 ?