diff --git a/Cabal/Distribution/Simple/Configure.hs b/Cabal/Distribution/Simple/Configure.hs index 4d8e2356bee..ccf69ad28da 100644 --- a/Cabal/Distribution/Simple/Configure.hs +++ b/Cabal/Distribution/Simple/Configure.hs @@ -2007,8 +2007,7 @@ checkForeignLibSupported comp platform flib = go (compilerFlavor comp) goGhcPlatform :: Platform -> Maybe String goGhcPlatform (Platform X86_64 OSX ) = goGhcOsx (foreignLibType flib) - goGhcPlatform (Platform I386 Linux ) = goGhcLinux (foreignLibType flib) - goGhcPlatform (Platform X86_64 Linux ) = goGhcLinux (foreignLibType flib) + goGhcPlatform (Platform _ Linux ) = goGhcLinux (foreignLibType flib) goGhcPlatform (Platform I386 Windows) = goGhcWindows (foreignLibType flib) goGhcPlatform (Platform X86_64 Windows) = goGhcWindows (foreignLibType flib) goGhcPlatform _ = unsupported [