From 00480e8549987b6cae7100b28bcead2a2d501177 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sun, 29 Nov 2020 10:56:22 +0000 Subject: Fix static build --- INSTALL.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'INSTALL.md') 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' -- cgit v1.2.3