Skip to content

Comments

Delete broken checks for GCC version that break -fstack-protector-strong#478

Open
berrange wants to merge 1 commit intointel:mainfrom
berrange:gcc-version-checks
Open

Delete broken checks for GCC version that break -fstack-protector-strong#478
berrange wants to merge 1 commit intointel:mainfrom
berrange:gcc-version-checks

Conversation

@berrange
Copy link
Contributor

@berrange berrange commented Dec 4, 2025

The expr comparison is performing a string comparison and is thus broken for any GCC version >= 10, preventing use of -fstack-protector-strong

Since GCC 4.9 was released over 9 years ago (Aug 2016), it is thought reasonable to just drop the conditional check and assume -fstack-protector-strong is always available for GCC.

@berrange
Copy link
Contributor Author

Fixes #447

The expr comparison is performing a string comparison and is thus
broken for any GCC version >= 10, preventing use of -fstack-protector-strong

Since GCC 4.9 was released almost 10 years ago (Aug 2016), it is reasonable
to drop the conditional check and assume -fstack-protector-strong is always
available for GCC.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
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