Skip to content

Commit e4bd285

Browse files
committed
Copy libjim and libgpiod .so files, and set rpath
This should fix raspberrypi/pico-vscode#203 and #19
1 parent 83cf99b commit e4bd285

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/linux/openocd/build-openocd.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ make
1313
INSTALLDIR="$PWD/../openocd-install/usr/local/bin"
1414
rm -rf "$PWD/../openocd-install"
1515
DESTDIR="$PWD/../openocd-install" make install
16+
17+
# Add libraries that may be different versions on the system
18+
cd $INSTALLDIR
19+
cp $(ldd openocd | egrep -o "(/.*/libgpiod\.so\.\S*)") ./
20+
cp $(ldd openocd | egrep -o "(/.*/libjim\.so\.\S*)") ./
21+
patchelf --set-rpath . openocd

0 commit comments

Comments
 (0)