aboutsummaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorumarcor <38422348+umarcor@users.noreply.github.com>2020-02-20 07:43:16 +0100
committerGitHub <noreply@github.com>2020-02-20 07:43:16 +0100
commit60a6f13379ed47d33fc6ecdcb314460be33ba46c (patch)
treef5b410250780c7652f2c900e22be5b8164f2b2ea /dist
parent531a109b1ff35bfe7873250ddca258d2cd031f18 (diff)
downloadghdl-60a6f13379ed47d33fc6ecdcb314460be33ba46c.tar.gz
ghdl-60a6f13379ed47d33fc6ecdcb314460be33ba46c.tar.bz2
ghdl-60a6f13379ed47d33fc6ecdcb314460be33ba46c.zip
add build script for termux (#1143)
Diffstat (limited to 'dist')
-rw-r--r--dist/termux.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/dist/termux.sh b/dist/termux.sh
new file mode 100644
index 000000000..635338407
--- /dev/null
+++ b/dist/termux.sh
@@ -0,0 +1,15 @@
+# Build and install GHDL on termux (https://termux.com/)
+
+cd $(dirname "$0")/..
+
+curl -fsSL https://its-pointless.github.io/setup-pointless-repo.sh | bash -
+pkg install gnat-9
+setupgcc-9
+ln -s $PREFIX/lib/gcc/aarch64-linux-android/9.2.0/libgnat-9.so $PREFIX/lib/libgnat-9.so
+ln -s $PREFIX/lib/gcc/aarch64-linux-android/9.2.0/libgnarl-9.so $PREFIX/lib/libgnarl-9.so
+
+mkdir -p build-termux
+cd build-termux
+../configure --default-pic --enable-synth --with-llvm-config=llvm-config --prefix="$PREFIX"
+make
+make install