aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-11-18 21:08:24 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-11-18 21:08:24 -0800
commit3f278f580e82670999b2bc8e6f10001b792c574c (patch)
tree195ae15b37ed20ed829ebe397bbac9f631654d33
parent7fa4d367bb2d083ea865e22b4439b321cfbc3011 (diff)
downloadpandoc-3f278f580e82670999b2bc8e6f10001b792c574c.tar.gz
Remove 'static' flag.
This isn't really necessary and can be misleading (e.g. on macOS, where a fully static build isn't possible). cabal's new option `--enable-executable-static` does the same. On stack you can add something like this to the options for your executable in package.yaml: ld-options: -static -pthread
-rw-r--r--pandoc.cabal9
-rw-r--r--stack.yaml1
2 files changed, 0 insertions, 10 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index 11dada132..a065d7459 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -376,10 +376,6 @@ 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
@@ -681,11 +677,6 @@ executable pandoc
hs-source-dirs: prelude
other-modules: Prelude
build-depends: base-compat >= 0.9
- if flag(static)
- ld-options: -static
- -- fully static builds are not possible on macos:
- if os(darwin)
- buildable: False
default-language: Haskell2010
other-extensions: NoImplicitPrelude
hs-source-dirs: .
diff --git a/stack.yaml b/stack.yaml
index 420a610b7..16f56c9d4 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -2,7 +2,6 @@ flags:
pandoc:
trypandoc: false
embed_data_files: true
- static: false
packages:
- '.'
extra-deps: