GHC 9.12.3 fails in linking step where GHC 9.12.2 succeeded
## Summary
Using cabal to test my [avif](https://github.com/vmchale/avif) library yields an error during linking when using GHC 9.12.3 but not when using GHC 9.12.2
## Steps to reproduce
```
% cabal test -w ghc-9.12.2
...
Preprocessing test suite 'avif-test' for avif-2.0.0.0...
Building test suite 'avif-test' for avif-2.0.0.0...
Running 1 test suites...
Test suite avif-test: RUNNING...
Roundtrip
test/data/original.avif: OK (0.01s)
test/data/original.avif: OK (8.21s)
decodeE: OK
All 3 tests passed (8.21s)
Test suite avif-test: PASS
....
% cabal test -w ghc-9.12.3
...
Configuring library for avif-2.0.0.0...
Preprocessing library for avif-2.0.0.0...
Building library for avif-2.0.0.0...
...
Configuring test suite 'avif-test' for avif-2.0.0.0...
Preprocessing test suite 'avif-test' for avif-2.0.0.0...
Building test suite 'avif-test' for avif-2.0.0.0...
[1 of 1] Compiling Main ( test/Spec.hs, dist-newstyle/build/aarch64-osx/ghc-9.12.3/avif-2.0.0.0/t/avif-test/build/avif-test/avif-test-tmp/Main.o )
[2 of 2] Linking dist-newstyle/build/aarch64-osx/ghc-9.12.3/avif-2.0.0.0/t/avif-test/build/avif-test/avif-test
Undefined symbols for architecture arm64:
"_iconv", referenced from:
_hs_iconv in libHSghc-internal-9.1203.0-d191.a[5](iconv.o)
"_iconv_close", referenced from:
_hs_iconv_close in libHSghc-internal-9.1203.0-d191.a[5](iconv.o)
"_iconv_open", referenced from:
_hs_iconv_open in libHSghc-internal-9.1203.0-d191.a[5](iconv.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ghc-9.12.3: Uncaught exception ghc-9.12.3-89b4:GHC.Utils.Panic.GhcException:
`gcc' failed in phase `Linker'. (Exit code: 1)
While handling `gcc' failed in phase `Linker'. (Exit code: 1)
HasCallStack backtrace:
bracket, called at compiler/GHC/Driver/Make.hs:2959:3 in ghc-9.12.3-89b4:GHC.Driver.Make
```
Using GHC 9.6.7 yields a similar failure during linking; while GHC 9.8.4 and GHC 9.10.3 proceed successfully. GHC 9.14.1 also yields a failure where e.g. GHC 9.12.2 worked.
## Expected behavior
Linking behavior should not vary across versions.
## Environment
* GHC version used: 9.12.2, 9.12.3
Optional:
* Operating System: macOS 15.7.3
* System Architecture: M4
issue