apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47829] apr-config: CFLAGS should not include "-O2"
Date Sun, 31 Jan 2010 13:31:30 GMT

Joe Orton <jorton@redhat.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Joe Orton <jorton@redhat.com> 2010-01-31 05:31:27 UTC ---
APR simply exports all the CFLAGS used during the build.  I think this is
reasonable and follows the principle of least surprise - apps built against APR
will be built using exactly the same CFLAGS as APR.  Sure, if you want your app
to be explicitly built without debugging symbols even if APR is, you will have
to manually strip out -g or whatever from CFLAGS.

It is generally hard/impossible for APR to know what CFLAGS are "safe" to
strip;  e.g. if any CFLAGS affected an ABI/API choice.   Stripping simply -g
and -O2 alone would not necessarily be correct, either; any compiler-specific
debugging-related flags might still pass through, e.g. -gdwarf-* etc.  It seems
possible that stripping -g alone might even break the build if a combination of
flags remained that the compiler fails for.

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org

View raw message