--- a/debian.cabal
+++ b/debian.cabal
@@ -20,6 +20,10 @@ flag network-uri
  Description: Get Network.URI from the network-uri package
  Default: True
 
+flag threaded
+  description: build threaded
+  default: True
+
 Library
  Hs-Source-Dirs: src
  Build-Depends:
@@ -117,7 +121,9 @@ Executable apt-get-build-depends
  Hs-Source-Dirs: utils
  Main-is: AptGetBuildDeps.hs
  Build-Depends: base, debian, process
- ghc-options: -threaded -W
+ ghc-options: -W
+ if flag(threaded)
+   ghc-options: -threaded
  default-extensions:           ExistentialQuantification CPP
  default-language: Haskell2010
 
