Skip to content

Commit

Permalink
Look for libraries in /usr/lib too
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
andreabolognani authored and rmohr committed Sep 5, 2022
1 parent 779fa22 commit 8893816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ldd.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func NewLddCmd() *cobra.Command {
}

files := []string{}
dependencies, err := ldd.Resolve(objects, []string{filepath.Join(tmpRoot, "/usr/lib64")})
dependencies, err := ldd.Resolve(objects, []string{filepath.Join(tmpRoot, "/usr/lib64"), filepath.Join(tmpRoot, "/usr/lib")})
if err != nil {
return err
}
Expand Down

0 comments on commit 8893816

Please sign in to comment.