From: | Martín Marqués <martin(at)2ndquadrant(dot)com> |
---|---|
To: | Pavel Raiskup <praiskup(at)redhat(dot)com> |
Cc: | pgsql-pkg-yum(at)postgresql(dot)org |
Subject: | Re: CFLAGS and configure options |
Date: | 2014-03-07 12:01:14 |
Message-ID: | CABeG9Ls-gS6JWhz1sb7eDw-1_nVivDRPhYQ1J9J5O_fF9RTyKw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-pkg-yum |
Hi Pavel,
2014-03-07 6:44 GMT-03:00 Pavel Raiskup <praiskup(at)redhat(dot)com>:
>
> I'm not the correct person to answer why it is like that (the %beta part
> of *spec file is quite old). But at least in Fedora/RHEL we build with
> debugging information by default (we are passing the -g option to gcc via
> CFLAGS). This may be pretty likely historic leftover nobody cared of
> until now.
Yes, that's correct, it is using -g in CFLAGS, just got curious when I
compared configure options with the debian build.
> As a workaround, you may use 'export CFLAGS="$CFLAGS -g"' before you'll
> rpmbuild, or so.
I'm actually adding -fno-omit-frame-pointer to CFLAGS so in case we
need it, we can get hierarchical perf reports without having to
recompile/install/restart.
Cheers,
--
Martín Marqués http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Martín Marqués | 2014-03-20 20:30:55 | New repmgr packages |
Previous Message | Pavel Raiskup | 2014-03-07 09:44:21 | Re: CFLAGS and configure options |