Skip to content

Commit bd3a324

Browse files
committed
Fix x86_64 linux build
1 parent 3b9adfa commit bd3a324

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/linux/openocd/build-openocd.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ DESTDIR="$PWD/../openocd-install" make install
1616

1717
# Add libraries that may be different versions on the system
1818
cd $INSTALLDIR
19-
cp $(ldd openocd | egrep -o "(/.*/libgpiod\.so\.\S*)") ./
19+
if [[ $(uname -m) == 'aarch64' ]]; then
20+
cp $(ldd openocd | egrep -o "(/.*/libgpiod\.so\.\S*)") ./
21+
fi
2022
cp $(ldd openocd | egrep -o "(/.*/libjim\.so\.\S*)") ./
2123
patchelf --set-rpath . openocd

0 commit comments

Comments
 (0)