summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-11-14 19:00:30 +0100
committerYorhel <git@yorhel.nl>2019-11-14 19:00:32 +0100
commita5e08cf597c2960d1577742a65459bf443348cbd (patch)
tree1a44f1012148ed06c6821b5ea045e6cd83fe90d5 /static
parent62bc78d9377111173a60c8c825e6ef60dda16f98 (diff)
Fix cross compiler targets
I assumed that ./configure would fail if it can't find a suitable compiler for the given --host, but it just falls back to the host gcc. Fixes #138
Diffstat (limited to 'static')
-rwxr-xr-xstatic/build.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/static/build.sh b/static/build.sh
index ecf4385..03b95ea 100755
--- a/static/build.sh
+++ b/static/build.sh
@@ -109,9 +109,9 @@ getncdu() {
buildarch() {
TARGET=$1
case $TARGET in
- arm) HOST=arm-musl-linuxeabi DIR=arm-linux-musleabi ;;
- i486) HOST=i486-musl-linux DIR=i486-linux-musl ;;
- x86_64) HOST=x86_64-musl-linux DIR=x86_64-linux-musl ;;
+ arm) HOST=arm-linux-musleabi DIR=arm-linux-musleabi ;;
+ i486) HOST=i486-linux-musl DIR=i486-linux-musl ;;
+ x86_64) HOST=x86_64-linux-musl DIR=x86_64-linux-musl ;;
*) echo "Unknown target: $TARGET" ;;
esac
PREFIX="`pwd`/$TARGET/inst"
@@ -119,7 +119,7 @@ buildarch() {
ln -s lib $PREFIX/lib64
OLDPATH="$PATH"
- PATH="$PATH:$MUSL_CROSS_PATH/$DIR/bin"
+ export PATH="$PATH:$MUSL_CROSS_PATH/$DIR/bin"
getncurses
getncdu
PATH="$OLDPATH"