summaryrefslogtreecommitdiff
path: root/p/haskell-debian/debian/patches/threaded-option
blob: 5885ccb2119e23177f30d84ae572fe9bbe08d663 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
--- a/debian.cabal
+++ b/debian.cabal
@@ -25,6 +25,10 @@
  Default: True
  Manual: True
 
+flag threaded
+  description: build threaded
+  default: True
+
 Library
  Hs-Source-Dirs: .
  Build-Depends:
@@ -109,14 +113,18 @@
  Hs-Source-Dirs: utils
  Main-is: FakeChanges.hs
  Build-Depends: base, debian, directory, filepath
- ghc-options: -threaded -W -O2
+ ghc-options: -W -O2
+ if flag(threaded)
+   ghc-options: -threaded
  Extensions:           ExistentialQuantification CPP
 
 Executable debian-report
  Hs-Source-Dirs: utils
  Main-is: Report.hs
  Build-Depends: base, debian, HaXml, unix
- ghc-options: -threaded -W -O2
+ ghc-options: -W -O2
+ if flag(threaded)
+   ghc-options: -threaded
  C-Sources:           cbits/gwinsz.c
  Include-Dirs:        cbits
  Install-Includes:    gwinsz.h
@@ -127,7 +135,9 @@
  Hs-Source-Dirs: utils
  Main-is: AptGetBuildDeps.hs
  Build-Depends: base, debian, process
- ghc-options: -threaded -W -O2
+ ghc-options: -W -O2
+ if flag(threaded)
+   ghc-options: -threaded
  Extensions:           ExistentialQuantification CPP
 
 Test-Suite debian-tests