Use linker capability detection to improve linker use
commit53fc3d36f4fc1badec94b073ffcbf45c398b451c
authorErik de Castro Lopo <erikd@mega-nerd.com>
Wed, 15 Nov 2023 02:09:13 +0000 (15 13:09 +1100)
committerMikolaj <281893+Mikolaj@users.noreply.github.com>
Fri, 17 Nov 2023 05:18:25 +0000 (17 05:18 +0000)
treecbe2c86e9e5900d1e68f71f996ce9f59f0c14671
parent4336f4c4879c8ad77d4a3678634762e0499bd02f
Use linker capability detection to improve linker use

The function `comperSupportsGhciLibs` has been renamed to
`linkerSupportsGhciLibs` because its about the linker not the compiler.

The function `comperSupportsGhciLibs` was using the compiler version
as a proxy for whether the linker supports relocatable objects. Now
support for relocatable objects is detected by running the linker.
Cabal/src/Distribution/Simple/Configure.hs
Cabal/src/Distribution/Simple/Program/Db.hs
changelog.d/pr-9443 [new file with mode: 0644]