[Gluster-devel] FW: Change in glusterfs[master]: Add support for --enable-debug configure option
Kaleb S. KEITHLEY
kkeithle at redhat.com
Thu Aug 16 14:32:47 UTC 2012
On 08/16/2012 10:21 AM, Joe Julian wrote:
> I am no expert here, but isn't the default on at least some distributions -O2?
>
> John Mark Walker <johnmark at redhat.com> wrote:
>
>> _______________________________________________
>> Gluster-devel mailing list
>> Gluster-devel at nongnu.org
>> https://lists.nongnu.org/mailman/listinfo/gluster-devel
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel at nongnu.org
> https://lists.nongnu.org/mailman/listinfo/gluster-devel
>
The configure.ac template is -O0, and thus the configure script produced
by autoconf is also -O0.
For the current Fedora and EPEL builds configure.ac is patched to -O2 as
part of the build process.
We discussed at the community architecture planning meeting in July that
going forward we would leave it -O0 for x.y.0 and x.y.1 releases and
switch to -O2 for x.y.2 and later releases. (Although I haven't made
that change for Fedora and EPEL yet.)
But note that for RPMs anyway, everything _is_ actually compiled with
-g; the debug symbols are stripped from the binaries after the debuginfo
RPM is produced. Off hand I'm not sure there's a lot of value in adding
and --enable-debug option — just install the debuginfo RPMs instead if
you want to debug.
--
Kaleb
More information about the Gluster-devel
mailing list