diff --git a/bytestring.cabal b/bytestring.cabal index 61ffcce4f..b2778c414 100644 --- a/bytestring.cabal +++ b/bytestring.cabal @@ -135,7 +135,9 @@ library -- DNDEBUG disables asserts in cbits/ cc-options: -std=c11 -DNDEBUG=1 - if os(windows) + -- No need to link to libgcc on ghc-9.4 and later which uses a clang-based + -- toolchain. + if os(windows) && impl(ghc < 9.3) extra-libraries: gcc include-dirs: include