diff --git a/cabal-testsuite/PackageTests/ForeignLibs/setup.test.hs b/cabal-testsuite/PackageTests/ForeignLibs/setup.test.hs index 8b0bf0e4b1e..a7d8ad0a0f1 100644 --- a/cabal-testsuite/PackageTests/ForeignLibs/setup.test.hs +++ b/cabal-testsuite/PackageTests/ForeignLibs/setup.test.hs @@ -28,9 +28,7 @@ main = setupAndCabalTest . recordMode DoNotRecord $ do skipUnlessGhcVersion ">= 7.8" osx <- isOSX ghc80 <- isGhcVersion "== 8.0.2" - win <- isWindows - ghcGreaterThan90 <- isGhcVersion ">= 9.0" - expectBrokenIf ((osx && ghc80) || (win && ghcGreaterThan90)) 7989 $ + expectBrokenIf (osx && ghc80) 7989 $ withPackageDb $ do setup_install [] setup "copy" [] -- regression test #4156 diff --git a/changelog.d/pr-7764 b/changelog.d/pr-7764 new file mode 100644 index 00000000000..89d1a3fb7a9 --- /dev/null +++ b/changelog.d/pr-7764 @@ -0,0 +1,17 @@ +synopsis: Use ghc -flink-rts option when available +packages: Cabal +prs: #7764 #8111 +issues: #7763 +significance: significant + +description: { + +Previously Cabal did quite some headstands to link against libHSrts. +Note only this is complex but it couples very tightly to GHC's implementation. +Thankfully, as of GHC 9.0 GHC provides a -flink-rts flag for precisely this purpose. +Use it when available. + +It fixed a bug which make Cabal unusable to build foreign libraries for windows and ghc 9.0 or 9.2. +See + +} \ No newline at end of file