File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 1515 AR=ar
1616fi
1717
18+ # Copy compiler-rt builtins library for static aarch64-musl builds
19+ if [ " ${TARGET_TRIPLE} " = " aarch64-unknown-linux-musl" ] && [ " ${CC} " = " musl-clang" ] && [ -n " ${STATIC} " ]; then
20+ # musl-clang eliminates default library search paths, so copy compiler-rt builtins to accessible location
21+ for lib in ${TOOLS_PATH} /${TOOLCHAIN} /lib/clang/* /lib/linux/libclang_rt.builtins-aarch64.a; do
22+ if [ -e " $lib " ]; then
23+ filename=$( basename " $lib " )
24+ if [ -e " ${TOOLS_PATH} /host/lib/${filename} " ]; then
25+ echo " warning: ${filename} already exists"
26+ fi
27+ cp " $lib " ${TOOLS_PATH} /host/lib/
28+ fi
29+ done
30+ fi
31+
1832tar -xf bzip2-${BZIP2_VERSION} .tar.gz
1933
2034pushd bzip2-${BZIP2_VERSION}
You can’t perform that action at this time.
0 commit comments