Do not link with threaded RTS on ARM.
GHC on ARM doesn't have a threaded RTS, which makes it impossible to build cabal-install without editing the source by hand (see #1129). This patch makes cabal-install compile out of the box on ARM.
|@@ -1,4 +1,4 @@|
|-#if defined(__GLASGOW_HASKELL__) && (__GLASGOW_HASKELL__ >= 612)|
|+#if defined(__GLASGOW_HASKELL__) && (__GLASGOW_HASKELL__ >= 612) && !defined(CABAL_NO_THREADED)|
|/* Since version 6.12, GHC's threaded RTS includes a getNumberOfProcessors|
|function, so we try to use that if available. cabal-install is always built|
|with -threaded nowadays. */|