From bcf982c083fc32dfda0cf24ca965b71232d22f0c Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 30 Oct 2017 14:28:21 -0700 Subject: Linux package build: ensure that pandoc-citeproc is statically linked. --- linux/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'linux') diff --git a/linux/Dockerfile b/linux/Dockerfile index d2348b11d..3660aa4fc 100644 --- a/linux/Dockerfile +++ b/linux/Dockerfile @@ -15,7 +15,11 @@ WORKDIR /usr/src/ RUN git clone https://github.com/jgm/pandoc WORKDIR /usr/src/pandoc RUN stack install --stack-yaml stack.pkg.yaml --only-dependencies \ + --flag 'pandoc:static' \ --flag 'pandoc:embed_data_files' \ + --flag 'pandoc-citeproc:static' \ + --flag 'pandoc-citeproc:embed_data_files' \ + --flag 'hslua:-export-dynamic' \ --ghc-options '-O2 -optc-Os -optl=-pthread -optl=-static -fPIC' \ pandoc pandoc-citeproc CMD git pull && \ @@ -23,6 +27,8 @@ CMD git pull && \ stack install --stack-yaml stack.pkg.yaml \ --flag 'pandoc:static' \ --flag 'pandoc:embed_data_files' \ + --flag 'pandoc-citeproc:static' \ + --flag 'pandoc-citeproc:embed_data_files' \ --flag 'hslua:-export-dynamic' \ --ghc-options '-O2 -optc-Os -optl=-pthread -optl=-static -fPIC' \ --local-bin-path /artifacts \ -- cgit v1.2.3