From b27429ad1efe957b0edfe80c3af6fcc6ff04097e Mon Sep 17 00:00:00 2001 From: BlueFox Date: Sat, 21 Sep 2024 16:39:41 +0200 Subject: [PATCH] Added build commands (for documentation/workflow) --- build_commands.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 build_commands.md diff --git a/build_commands.md b/build_commands.md new file mode 100644 index 0000000..8d65e52 --- /dev/null +++ b/build_commands.md @@ -0,0 +1,40 @@ +Commands I executed for testing the build of cmatrix in a alpine-based docker container. + +``` +hostname +git +apk update +apk add git +git clone https://git.privacynerd.de/Mirrors/cmatrix.git +cd cmatrix/ +autoreconf -i # skip if using released tarball +apk add --no-cache autoconf +autoreconf -i # skip if using released tarball +apk add --no-cache automake +autoreconf -i # skip if using released tarball +./configure +autoreconf -i # skip if using released tarball +echo $? +./configure +./configure LDFLAGS="-static" +./configure LDFLAGS="-static" # for a static (quite standalone) binary +./configure LDFLAGS="-static" # for static compilation +apk add alpine-sdk # base compilers +./configure LDFLAGS="-static" # for static compilation +apk add ncurses +./configure LDFLAGS="-static" # for static compilation +apk add ncurses ncurses-dev +./configure LDFLAGS="-static" # for static compilation +apk add ncurses ncurses-dev ncurses-static +./configure LDFLAGS="-static" # for static compilation +apk add ncurses-dev ncurses-static +./configure LDFLAGS="-static" # for static compilation +mkdir /usr/lib/kbd/consolefonts /usr/share/consolefonts +mkdir /usr/lib/kbd/consolefonts -p +mkdir /usr/share/consolefonts -p +./configure LDFLAGS="-static" # for static compilation +make +./cmatrix +./cmatrix -b +history +