Created
November 10, 2022 19:55
-
-
Save lancethepants/608b26c1e3718ed80d36a8d5b228123b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
set -x | |
export PATH=$PATH:~/perl/bin:/opt/tomatoware/aarch64-musl-mmc/bin/ | |
mkdir -p ~/perl/bin | |
ln -s `which ccache` ~/perl/bin/aarch64-linux-gcc | |
ln -s `which ccache` ~/perl/bin/aarch64-linux-g++ | |
# setup toolchain | |
sudo mkdir -p /opt/tomatoware | |
sudo chmod 777 /opt/tomatoware | |
cd /opt/tomatoware | |
wget https://github.com/lancethepants/tomatoware-toolchain/releases/download/v5/aarch64-musl-mmc.tgz | |
tar zxvf aarch64-musl-mmc.tgz | |
cd ~/perl | |
wget https://www.cpan.org/src/5.0/perl-5.32.1.tar.gz | |
wget https://github.com/arsv/perl-cross/releases/download/1.3.5/perl-cross-1.3.5.tar.gz | |
tar zxvf perl-5.32.1.tar.gz | |
tar zxvf perl-cross-1.3.5.tar.gz -C perl-5.32.1 --strip 1 | |
cp -r perl-5.32.1 perl | |
cp -r perl perl-host | |
cd perl-host | |
./configure | |
make | |
cd ../perl | |
./configure --target=aarch64-linux --use-threads | |
make | |
echo "done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment