Skip to content
Snippets Groups Projects
Commit a5e08cf5 authored by Yorhel's avatar Yorhel
Browse files

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
parent 62bc78d9
No related branches found
No related tags found
No related merge requests found
...@@ -109,9 +109,9 @@ getncdu() { ...@@ -109,9 +109,9 @@ getncdu() {
buildarch() { buildarch() {
TARGET=$1 TARGET=$1
case $TARGET in case $TARGET in
arm) HOST=arm-musl-linuxeabi DIR=arm-linux-musleabi ;; arm) HOST=arm-linux-musleabi DIR=arm-linux-musleabi ;;
i486) HOST=i486-musl-linux DIR=i486-linux-musl ;; i486) HOST=i486-linux-musl DIR=i486-linux-musl ;;
x86_64) HOST=x86_64-musl-linux DIR=x86_64-linux-musl ;; x86_64) HOST=x86_64-linux-musl DIR=x86_64-linux-musl ;;
*) echo "Unknown target: $TARGET" ;; *) echo "Unknown target: $TARGET" ;;
esac esac
PREFIX="`pwd`/$TARGET/inst" PREFIX="`pwd`/$TARGET/inst"
...@@ -119,7 +119,7 @@ buildarch() { ...@@ -119,7 +119,7 @@ buildarch() {
ln -s lib $PREFIX/lib64 ln -s lib $PREFIX/lib64
OLDPATH="$PATH" OLDPATH="$PATH"
PATH="$PATH:$MUSL_CROSS_PATH/$DIR/bin" export PATH="$PATH:$MUSL_CROSS_PATH/$DIR/bin"
getncurses getncurses
getncdu getncdu
PATH="$OLDPATH" PATH="$OLDPATH"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment