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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: geohas <lists(at)hasibether(dot)at>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: How to use Makefile - pgxs without gcc -O2 ?
Date: 2014-07-08 15:45:37
Message-ID: 13810.1404834337@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

geohas <lists(at)hasibether(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message geohas 2014-07-08 15:53:28 Re: How to use Makefile - pgxs without gcc -O2 ?
Previous Message David Fetter 2014-07-08 15:45:02 Re: [BUGS] LEFT JOINs not optimized away when not needed