--- mesonbuild/modules/gnome.py.orig	2025-04-30 23:59:39
+++ mesonbuild/modules/gnome.py	2025-05-01 00:00:34
@@ -984,8 +984,9 @@
         run_env = PkgConfigInterface.get_env(state.environment, MachineChoice.HOST, uninstalled=True)
         # g-ir-scanner uses Python's distutils to find the compiler, which uses 'CC'
         cc_exelist = state.environment.coredata.compilers.host['c'].get_exelist()
-        run_env.set('CC', [quote_arg(x) for x in cc_exelist], ' ')
-        run_env.set('CFLAGS', [quote_arg(x) for x in env_flags], ' ')
+        # MACPORTS MOD -- do not set CC and CFLAGS here. MacPorts sets it directly, with modifications
+        # run_env.set('CC', [quote_arg(x) for x in cc_exelist], ' ')
+        # run_env.set('CFLAGS', [quote_arg(x) for x in env_flags], ' ')
         run_env.merge(kwargs['env'])
 
         return GirTarget(
