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

disable _FORTIFY_SOURCE for debug builds #86

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Abstract-Everything
Copy link

Enabling this macro in debug builds causes a warning which is then treated as an error failing the build:
/usr/include/features.h:414:4: warning: _FORTIFY_SOURCE requires compiling with optimization (-O) [-W#warnings]
414 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O)

Enabling this macro in debug builds causes a warning which is then
treated as an error failing the build:
/usr/include/features.h:414:4: warning: _FORTIFY_SOURCE requires compiling with optimization (-O) [-W#warnings]
  414 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
@Abstract-Everything
Copy link
Author

I have created this PR because downloading the template and compiling was failing without any changes on my machine. I feel like there should be a better way than comparing the build string but I did not think of any.

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.

1 participant