Make the musl dynamic loader known to the system, so it can execute target binaries
This commit is contained in:
parent
aecb32ce6e
commit
8e2aa524ed
1 changed files with 11 additions and 0 deletions
|
|
@ -28,6 +28,10 @@ exit 1
|
|||
}
|
||||
|
||||
TARGET=$1
|
||||
#ARCH=$1
|
||||
#TARGET=linux-musl-$ARCH
|
||||
ARCH=x86_64
|
||||
|
||||
OUTPUT=/usr/local
|
||||
shift
|
||||
|
||||
|
|
@ -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++
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue