Re: How to use Makefile - pgxs without gcc -O2 ? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: How to use Makefile - pgxs without gcc -O2 ?
Date
Msg-id 13810.1404834337@sss.pgh.pa.us
Whole thread Raw
In response to How to use Makefile - pgxs without gcc -O2 ?  (geohas <lists@hasibether.at>)
Responses Re: How to use Makefile - pgxs without gcc -O2 ?  (geohas <lists@hasibether.at>)
List 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 by date:

Previous
From: David Fetter
Date:
Subject: Re: [BUGS] LEFT JOINs not optimized away when not needed
Next
From: geohas
Date:
Subject: Re: How to use Makefile - pgxs without gcc -O2 ?