aboutsummaryrefslogtreecommitdiff
path: root/INSTALL.md
diff options
context:
space:
mode:
authorPjotr Prins2020-11-29 10:56:22 +0000
committerPjotr Prins2020-11-29 10:56:22 +0000
commit00480e8549987b6cae7100b28bcead2a2d501177 (patch)
tree98fa8d71e773faecedd360758b1050beb57c193b /INSTALL.md
parent235420546bf83bdeb91a654dc6daabdcffd6210f (diff)
downloadpangemma-00480e8549987b6cae7100b28bcead2a2d501177.tar.gz
Fix static build
Diffstat (limited to 'INSTALL.md')
-rw-r--r--INSTALL.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/INSTALL.md b/INSTALL.md
index 87066b6..8c0fdb0 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -122,3 +122,31 @@ GEMMA includes the shunit2 test framework (version 2.0).
or
./run_tests.sh
+
+## Releases
+
+### Docker release
+
+To distribute GEMMA I made static versions of the binary. A container
+can be made instead with, for example
+
+```sh
+env GUIX_PACKAGE_PATH=~/guix-bioinformatics ~/.config/guix/current/bin/guix \
+ pack -f docker gemma-gn2 -S /bin=bin
+```
+
+which created a container in of size 51MB. Tiny! For more information
+see
+[GUIX-NOTES](http://git.genenetwork.org/guix-bioinformatics/guix-notes/CONTAINERS.org).
+
+
+### Static release
+
+To create a static release, locate the gfortran lib and use
+
+ source .guix-dev-static
+ make WITH_GFORTRAN=1 EXTRA_FLAGS=-L/gnu/store/741057r2x06zwg6zcmqmdyv51spm6n9i-gfortran-7.5.0-lib/lib static
+
+otherwise OpenBlas will complain with
+
+ undefined reference to `_gfortran_concat_string'