diff --git a/pkg/build/package.go b/pkg/build/package.go index 8be9d6c8f..cc353832f 100644 --- a/pkg/build/package.go +++ b/pkg/build/package.go @@ -446,7 +446,7 @@ func generateSharedObjectNameDeps(pc *PackageContext, generated *Dependencies) e } } - if !pc.Options.NoProvides && strings.Contains(basename, ".so.") { + if !pc.Options.NoProvides { sonames, err := ef.DynString(elf.DT_SONAME) // most likely SONAME is not set on this object if err != nil {