@@ -122,6 +122,9 @@ Extra-Source-Files:
122122 tests/RunTests.hs
123123Extra-Tmp-Files: man/man1/pandoc.1, man/man1/markdown2pdf.1
124124
125+Flag threaded
126+ Description: Compile markdown2pdf with -threaded option.
127+ Default: True
125128Flag highlighting
126129 Description: Compile in support for syntax highlighting of code blocks.
127130 Default: False
@@ -195,9 +198,9 @@ Executable pandoc
195198 Hs-Source-Dirs: src
196199 Main-Is: pandoc.hs
197200 if impl(ghc >= 6.12)
198− Ghc-Options: -O2 -Wall -threaded -fno-warn-unused-do-bind
201+ Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind
199202 else
200− Ghc-Options: -O2 -Wall -threaded
203+ Ghc-Options: -O2 -Wall
201204 Ghc-Prof-Options: -auto-all -caf-all
202205 Extensions: CPP
203206
@@ -214,7 +217,10 @@ Executable pandoc
214217Executable markdown2pdf
215218 Hs-Source-Dirs: src
216219 Main-Is: markdown2pdf.hs
217− Ghc-Options: -Wall -threaded
220+ if flag(threaded)
221+ Ghc-Options: -Wall -threaded
222+ else
223+ Ghc-Options: -Wall
218224 Ghc-Prof-Options: -auto-all
219225 Extensions: CPP
220226 if flag(wrappers)