Skip to content

[Backport release/3.11] Fix CMake compilation with -Wp,-D_FORTIFY_SOURCE=2 flags #12844

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

Merged
merged 1 commit into from
Aug 1, 2025

Conversation

rouault
Copy link
Member

@rouault rouault commented Aug 1, 2025

Backport #12842
Authored by: @aale24

Handle both -D_FORTIFY_SOURCE=2 and -Wp,-D_FORTIFY_SOURCE=2 variants
when removing FORTIFY_SOURCE flags for unit test compilation with -O0.
@rouault rouault added this to the 3.11.4 milestone Aug 1, 2025
@rouault rouault merged commit 00332a6 into release/3.11 Aug 1, 2025
22 of 36 checks passed
@rouault rouault deleted the backport-12842-to-release/3.11 branch August 1, 2025 12:36
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.

2 participants