summaryrefslogtreecommitdiff
path: root/pandoc.cabal
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-09-04 17:07:20 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2017-09-04 17:07:20 -0700
commitaa90919fe9c78acf74371ce1e43757776c04b506 (patch)
tree12d4588b511f7532a039eb71bdb8dc2e585d71c9 /pandoc.cabal
parent6a6c3858b47671f02f4f50ca2d6ab97d280a0f49 (diff)
Add 'static' Cabal flag, use it for linux statically linked.
Diffstat (limited to 'pandoc.cabal')
-rw-r--r--pandoc.cabal7
1 files changed, 6 insertions, 1 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index 2228c7ff5..093c9196d 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -265,6 +265,10 @@ Source-repository head
type: git
location: git://github.com/jgm/pandoc.git
+Flag static
+ Description: Use static linking for pandoc executable.
+ Default: False
+
Flag embed_data_files
Description: Embed data files in binary for relocatable executable.
Default: False
@@ -483,7 +487,8 @@ Executable pandoc
Build-Depends: pandoc, base >= 4.7 && < 5
Ghc-Options: -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind
Ghc-Prof-Options: -fprof-auto-exported -rtsopts -with-rtsopts=-K16m
-
+ if flag(static)
+ Ld-options: -static
Default-Language: Haskell98
Other-Extensions: PatternGuards, OverloadedStrings,
ScopedTypeVariables, GeneralizedNewtypeDeriving,