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

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thank you Tom!

make CFLAGS=-O0 was it.

now gdb doesn't print <Value optimized out>.

regards

On 08/07/14 17:45, Tom Lane wrote:
> 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
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTvBP3AAoJEJFGMlQe7wR/ACYIAJufplHygGUpKft8+S0W/Mpu
+tLX8bWpFd9Zg1fD1+gC0AglN6hSmiBc1TpSejOSruVUnFRoIAPbzDp+lSUpR4Hm
nC99Zjr71Qosinrwh3upLcN+CvM5jG+J5SLJfjTK1z5CLR0imudTQLXrNw8j0rFu
mgH5gKYa+/idxKnG1Hf8dzvdGIUOiRxDvX0F+FXgESedur6/voYgA6utdQBjHVLS
rfdNncWtcvswNhvhBfaZX30Nv9w+tiY/i+d/fR5mxU1D6RPDDy2JDIiQcX4ZstaS
1Rc4GYfH780TJxxp8whZ1cVgCcUC6G1cC23bvBfScuZn14+1qMsyHX/AjQRpugQ=
=lDtn
-----END PGP SIGNATURE-----

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2014-07-08 16:06:22 Re: tweaking NTUP_PER_BUCKET
Previous Message Tom Lane 2014-07-08 15:45:37 Re: How to use Makefile - pgxs without gcc -O2 ?