Commit 9d4ea24
committed
fwk: Package dynamic libs with util binaries
Can't run the binaries because they link to the specific libs from the
chroot. So need to include those.
```
> LD_LIBRARY_PATH=. ldd ./ectool
linux-vdso.so.1 (0x00007f7cb55d7000)
libftdi1.so.2 => /lib64/libftdi1.so.2 (0x00007f7cb5569000)
libusb-1.0.so.0 => /lib64/libusb-1.0.so.0 (0x00007f7cb554a000)
libec.so => ./libec.so (0x00007f7cb54ee000)
libbase-core.so => ./libbase-core.so (0x00007f7cb5000000)
libc++.so.1 => ./libc++.so.1 (0x00007f7cb53fc000)
libc++abi.so.1 => ./libc++abi.so.1 (0x00007f7cb53b8000)
libm.so.6 => /lib64/libm.so.6 (0x00007f7cb4f11000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f7cb4ee4000)
libc.so.6 => /lib64/libc.so.6 (0x00007f7cb4cf2000)
libudev.so.1 => /lib64/libudev.so.1 (0x00007f7cb4cab000)
libabseil_dll.so.2308.0.0 => ./libabseil_dll.so.2308.0.0 (0x00007f7cb4ba4000)
libbrillo-core.so => ./libbrillo-core.so (0x00007f7cb4b63000)
libdouble-conversion.so.3 => /lib64/libdouble-conversion.so.3 (0x00007f7cb4b4d000)
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007f7cb49f7000)
libevent_core-2.1.so.7 => /lib64/libevent_core-2.1.so.7 (0x00007f7cb49be000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7cb55d9000)
libcap.so.2 => /lib64/libcap.so.2 (0x00007f7cb49b2000)
libcrypto.so.3 => /lib64/libcrypto.so.3 (0x00007f7cb4400000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f7cb4000000)
libpcre2-8.so.0 => /lib64/libpcre2-8.so.0 (0x00007f7cb4907000)
libz.so.1 => /lib64/libz.so.1 (0x00007f7cb48e4000)
```
BUG=
BRANCH=fwk-main
TEST=Download util artifacts, go in that folder and run
`sudo LD_LIBRARY_PATH=. ./ectool version`
TEST=Check that ldd can find all dynamic libraries
Signed-off-by: Daniel Schaefer <dhs@frame.work>
(cherry picked from commit 7b9466d)1 parent 68651cd commit 9d4ea24
1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
102 | 116 | | |
103 | 117 | | |
104 | 118 | | |
| |||
0 commit comments