Don't use -Wl,-no_weak_imports when checking function existence.

This patch should only be applied on Snow Leopard and earlier because
the version of ld64 that MacPorts uses by default on Snow Leopard and
earlier doesn't understand that option.

Temporary workaround for https://github.com/mesonbuild/meson/issues/7204
--- vendored-meson/meson/mesonbuild/compilers/mixins/clang.py.orig	2025-12-31 11:03:28
+++ vendored-meson/meson/mesonbuild/compilers/mixins/clang.py	2026-02-18 15:59:50
@@ -122,13 +122,6 @@
                      dependencies: T.Optional[T.List['Dependency']] = None) -> T.Tuple[bool, bool]:
         if extra_args is None:
             extra_args = []
-        # Starting with XCode 8, we need to pass this to force linker
-        # visibility to obey OS X/iOS/tvOS minimum version targets with
-        # -mmacosx-version-min, -miphoneos-version-min, -mtvos-version-min etc.
-        # https://github.com/Homebrew/homebrew-core/issues/3727
-        # TODO: this really should be communicated by the linker
-        if isinstance(self.linker, AppleDynamicLinker) and mesonlib.version_compare(self.version, '>=8.0'):
-            extra_args.append('-Wl,-no_weak_imports')
         return super().has_function(funcname, prefix, env, extra_args=extra_args,
                                     dependencies=dependencies)
 
