[Rpm-maint] [rpm-software-management/rpm] Fix check_c_compiler_flag cmake tests (PR #3674)

2025-03-22 Thread Mike Gorse
Check_c_compiler_flag sets a cache variable, so CACHE needs to be passed in order to reset it for the next use. You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/3674 -- Commit Summary -- * Fix check_c_compiler_flag cmake tes

Re: [Rpm-maint] [rpm-software-management/rpm] Fix check_c_compiler_flag cmake tests (PR #3674)

2025-03-24 Thread Mike Gorse
mgorse left a comment (rpm-software-management/rpm#3674) The SLE 16 beta is using gcc 13 by default, and I noticed that rpm isn't building there because it puts -fhardened in CFLAGS. Maybe we should be building with a newer gcc, but, regardless, the check is meant to only pass -fhardened when t