diff -up libostree-2022.2/Makefile-libostree.am.orig2 libostree-2022.2/Makefile-libostree.am
--- libostree-2022.2/Makefile-libostree.am.orig2        2023-04-19 19:03:26.663366592 +0800
+++ libostree-2022.2/Makefile-libostree.am      2023-04-19 19:03:48.391512904 +0800
@@ -267,7 +267,4 @@ endif # USE_LIBSODIUM

-# XXX: work around clang being passed -fstack-clash-protection which it doesn't understand
-# See: https://bugzilla.redhat.com/show_bug.cgi?id=1672012
-INTROSPECTION_SCANNER_ENV = CC=gcc

 if BUILDOPT_INTROSPECTION
 OSTree-1.0.gir: libostree-1.la Makefile
