Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset CFLAGS and CXXFLAGS to a previous value to fix the large release builds. #264

Draft
wants to merge 1 commit into
base: 2.4
Choose a base branch
from

Conversation

blast007
Copy link
Member

We noticed that release builds on Linux (and possibly other platforms that use autotools) were including debugging information in the binaries. This change stops the -g compiler option from being automatically added to release builds. Issue #263 reported part of the problem.

…e builds.

This prevents -g from being added when we aren't building in debug mode.
@blast007 blast007 added this to the 2.4.22 milestone Sep 16, 2020
@blast007 blast007 linked an issue Sep 16, 2020 that may be closed by this pull request
Copy link
Member

@jwmelto jwmelto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is definitely some magic going on here ... I've searched this entire file for "CFLAGS" and it's not possible to assert any knowledge of state.

On line 187, user_CFLAGS is set from $ac_save_CFLAGS (but that initialization is not seen)
On line 188, user_CXXFLAGS is set from $CXXFLAGS with a comment that ac_save_CXXFLAGS is not set yet. ???

CONF_CFLAGS gets appended to, in rational ways, as options are evaluated

Then, on (now) lines 816-820, there is this comment about reverting automatic setting... but they haven't been assigned? Neither have user_CFLAGS or user_CXXFLAGS been updated

All that is to say, I have to take your word for this. The whole thing looking painfully convoluted and difficult to maintain...

@blast007
Copy link
Member Author

blast007 commented Sep 20, 2020

I'll need to take a close look at the configure.ac file. I do see now that the user_* options are only initialized when in debugging mode, but I could just always init those. I'll poke around with it some more to see if I can figure out why it's adding -g in the first place.

@blast007 blast007 modified the milestones: 2.4.22, 2.6 Release Jan 31, 2021
@blast007 blast007 marked this pull request as draft October 15, 2022 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

plugin_utils lib size seems too large
2 participants