-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
Protobuf is compiled with -g -O2 despite what configure.ac claims #6941
Comments
Turns out there is some bit of code which has an opposite intention: Lines 85 to 101 in 3be9322
I'm not aware of what is considered the best practice for handling debug/release builds in autotools, but it seems like, in the case of protobuf, downstream needs to explicitly set CXXFLAGS to achieve a full release build without "-g" option everywhere and with "-O2" on clang. |
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment. This issue is labeled |
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please reopen it. This issue was closed and archived because there has been no new activity in the 14 days since the |
By default, protobuf is compiled with
-O2 -g
, even thoughconfigure.ac
claims it shouldn't be:protobuf/configure.ac
Lines 39 to 44 in a9f390f
I'm building latest
master
as follows:Here's a sample compiler invocation during the build:
What would be the best way to compile protobuf without
-g
? This would help a lot with NixOS/nixpkgs#73919.The text was updated successfully, but these errors were encountered: