Another try to get linux static linking working again.
This commit is contained in:
parent
9fdc089cd8
commit
4170a18479
1 changed files with 2 additions and 2 deletions
|
@ -16,14 +16,14 @@ RUN git clone https://github.com/jgm/pandoc
|
||||||
WORKDIR /usr/src/pandoc
|
WORKDIR /usr/src/pandoc
|
||||||
RUN stack install --stack-yaml stack.pkg.yaml --only-dependencies \
|
RUN stack install --stack-yaml stack.pkg.yaml --only-dependencies \
|
||||||
--flag 'pandoc:embed_data_files' \
|
--flag 'pandoc:embed_data_files' \
|
||||||
--ghc-options '-fPIC -fllvm' \
|
--ghc-options '-O2 -optc-Os -optl=-pthread -optl=-static -fPIC' \
|
||||||
pandoc pandoc-citeproc
|
pandoc pandoc-citeproc
|
||||||
CMD git pull && \
|
CMD git pull && \
|
||||||
git checkout -b work $TREE && \
|
git checkout -b work $TREE && \
|
||||||
stack install --stack-yaml stack.pkg.yaml \
|
stack install --stack-yaml stack.pkg.yaml \
|
||||||
--flag 'pandoc:static' \
|
--flag 'pandoc:static' \
|
||||||
--flag 'pandoc:embed_data_files' \
|
--flag 'pandoc:embed_data_files' \
|
||||||
--ghc-options '-O2 -optc-Os -fPIC' \
|
--ghc-options '-O2 -optc-Os -optl=-pthread -optl=-static -fPIC' \
|
||||||
--local-bin-path /artifacts \
|
--local-bin-path /artifacts \
|
||||||
pandoc pandoc-citeproc && \
|
pandoc pandoc-citeproc && \
|
||||||
bash linux/make_deb.sh && \
|
bash linux/make_deb.sh && \
|
||||||
|
|
Loading…
Add table
Reference in a new issue