link/elf: do not set soname unless only dynlib (reverts for haiku exec)

This commit is contained in:
Jakub Konka 2024-04-08 22:20:49 +02:00
parent 84a0110464
commit bc0e2089bc

View File

@ -1461,7 +1461,7 @@ fn dumpArgv(self: *Elf, comp: *Compilation) !void {
}
}
if (self.isEffectivelyDynLib()) {
if (self.base.isDynLib()) {
if (self.soname) |name| {
try argv.append("-soname");
try argv.append(name);