mirror of
https://github.com/justinian/jsix.git
synced 2025-12-09 16:04:32 -08:00
[bonnibel] Add SONAME to shared objects
Add -soname to the linker options when making shared libraries, so that they have a SONAME string in their DYNAMIC section.
This commit is contained in:
@@ -47,7 +47,7 @@ rule driver
|
|||||||
description = Linking driver [$target]:$name
|
description = Linking driver [$target]:$name
|
||||||
|
|
||||||
rule lib
|
rule lib
|
||||||
command = $ld -shared $ldflags -o $out $in $libs
|
command = $ld -shared -soname $soname $ldflags -o $out $in $libs
|
||||||
description = Linking [$target]:$name
|
description = Linking [$target]:$name
|
||||||
|
|
||||||
rule lib_static
|
rule lib_static
|
||||||
|
|||||||
@@ -298,7 +298,8 @@ class Module:
|
|||||||
inputs = inputs,
|
inputs = inputs,
|
||||||
implicit = modopts.implicit,
|
implicit = modopts.implicit,
|
||||||
order_only = modopts.order_only,
|
order_only = modopts.order_only,
|
||||||
variables = {"name": self.name},
|
variables = {"name": self.name,
|
||||||
|
"soname": self.get_output()},
|
||||||
)
|
)
|
||||||
|
|
||||||
dump = output + ".dump"
|
dump = output + ".dump"
|
||||||
|
|||||||
Reference in New Issue
Block a user