Skip to content

WIP - Add x86_64-musl as a host architecture #57359

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 16 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make the musl dynamic loader known to the system, so it can execute t…
…arget binaries
  • Loading branch information
strfry authored and martell committed Jan 5, 2019
commit 876a39aa0d797889962b9c5b1e56872d90839af6
11 changes: 11 additions & 0 deletions src/ci/docker/scripts/musl-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ exit 1
}

TARGET=$1
#ARCH=$1
#TARGET=linux-musl-$ARCH
ARCH=x86_64

OUTPUT=/usr/local
shift

Expand All @@ -39,6 +43,13 @@ hide_output make install TARGET=$TARGET OUTPUT=$OUTPUT

cd ..

# Make musl binaries executable

ln -s $OUTPUT/$TARGET/lib/ld-musl-$ARCH.so.1 /lib
ln -s $OUTPUT/$TARGET/lib/libc.so /lib
echo $OUTPUT/$TARGET/lib >> /etc/ld-musl-$ARCH.path


export CC=$TARGET-gcc
export CXX=$TARGET-g++

Expand Down