File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ if [[ -f /etc/debian_version ]];then
2222 apt-get install -y llvm clang linux-libc-dev linux-headers-generic libbpf-dev libc6-dev nftables iproute2 gcc-aarch64-linux-gnu
2323
2424 ARCH=aarch64-linux-gnu
25- PLAT=linux-aarch64
2625 cp /usr/lib/" $ARCH " /ld-linux-aarch64.so.1 " $OUT_DIR " /lib/
2726 fi
2827
@@ -34,8 +33,13 @@ if [[ -f /etc/debian_version ]];then
3433# Mariner
3534else
3635 tdnf install -y llvm clang libbpf-devel nftables gcc binutils iproute glibc-devel
37- ARCH=x86_64-linux-gnu
38- cp /usr/lib/" $ARCH " /ld-linux-x86-64.so.2 " $OUT_DIR " /lib/
36+ if [[ $ARCH =~ amd64 ]]; then
37+ ARCH=x86_64-linux-gnu
38+ cp /usr/lib/" $ARCH " /ld-linux-x86-64.so.2 " $OUT_DIR " /lib/
39+ elif [[ $ARCH =~ arm64 ]]; then
40+ ARCH=aarch64-linux-gnu
41+ cp /usr/lib/" $ARCH " /ld-linux-aarch64.so.1 " $OUT_DIR " /lib/
42+ fi
3943 for dir in /usr/include/" $ARCH " /* ; do
4044 if [[ -d $dir ]]; then
4145 ln -sfn " $dir " /usr/include/$( basename " $dir " )
You can’t perform that action at this time.
0 commit comments