Skip to content

Commit 5f2e5d5

Browse files
committed
a
1 parent da18494 commit 5f2e5d5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -625,12 +625,12 @@ if ! (( is_native )) && [[ "${CROSS_COMPILE_TRIPLET}" != *'-darwin'* ]]; then
625625

626626
cp "${name}" "${toolchain_directory}/lib/${soname}"
627627

628-
# libgcc_s
629-
declare name=$(realpath $("${cc}" --print-file-name='libgcc_s.so.1'))
630-
631628
# libegcc
629+
declare name=$(realpath $("${cc}" --print-file-name='libegcc.so'))
630+
632631
if ! [ -f "${name}" ]; then
633-
declare name=$(realpath $("${cc}" --print-file-name='libegcc.so'))
632+
# libgcc_s
633+
declare name=$(realpath $("${cc}" --print-file-name='libgcc_s.so.1'))
634634
fi
635635

636636
declare soname=$("${readelf}" -d "${name}" | grep 'SONAME' | sed --regexp-extended 's/.+\[(.+)\]/\1/g')

0 commit comments

Comments
 (0)