Skip to content

Commit 8893816

Browse files
andreabolognanirmohr
authored andcommitted
Look for libraries in /usr/lib too
On current aarch64 Linux versions such as CentOS Stream 9 and Fedora 36, ld-linux-aarch64.so is found in /usr/lib instead of /usr/lib64. Signed-off-by: Andrea Bolognani <[email protected]>
1 parent 779fa22 commit 8893816

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/ldd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func NewLddCmd() *cobra.Command {
4848
}
4949

5050
files := []string{}
51-
dependencies, err := ldd.Resolve(objects, []string{filepath.Join(tmpRoot, "/usr/lib64")})
51+
dependencies, err := ldd.Resolve(objects, []string{filepath.Join(tmpRoot, "/usr/lib64"), filepath.Join(tmpRoot, "/usr/lib")})
5252
if err != nil {
5353
return err
5454
}

0 commit comments

Comments
 (0)