Hi, I think we should reconsider the change "Explicitly force optimization level 2 and debuginfo for release builds." See: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/O3G7HNM45FXRQ4TTIHJKAKQPB7U4VR2E/ and specifically the discussion following: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/NRQADKKIH5YWYK6IUIU3LBVYHEY33Z77/ I wonder, was it intended for CMAKE_*_RELEASE_FLAGS to override %optflags?
I agree the recent change probably ought to be reverted... I'm open to be convinced otherwise if some justification can be provided.
FEDORA-2021-8f165f3a4e has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2021-8f165f3a4e
FEDORA-2021-8f165f3a4e has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.
You left the -g in the Fortran flags. Accident?
(In reply to Michael Catanzaro from comment #4) > You left the -g in the Fortran flags. Accident? Yes, it was an accident. Fix is on it's way together with cmake-3.22.0-rc2. Thank you for your attention!