contrib/plugins: remove -soname argument
PATCH 1/1 contrib/plugins: remove -soname argument
-soname is not needed for runtime-loaded modules. For example, Meson says:
if not isinstance(target, build.SharedModule) or target.force_soname:
# Add -Wl,-soname arguments on Linux, -install_name on OS X commands += linker.get_soname_args(
self.environment, target.prefix, target.name, target.suffix, target.soversion, target.darwin_versions)
(force_soname is set is shared modules are linked into a build target, which is not the case here.
--- contrib/plugins/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
contrib/plugins/Makefile +1 -1
@@ -37,7 +37,7 @@ all: $(SONAMES) $(CC) $(CFLAGS) -c -o $@ $< lib%.so: %.o - $(CC) -shared -Wl,-soname,$@ -o $@ $^ $(LDLIBS) + $(CC) -shared -o $@ $^ $(LDLIBS) clean: rm -f *.o *.so *.d
Signature · 1 line
2.41.0
Quoted 21 lines · Paolo Bonzini
-soname is not needed for runtime-loaded modules. For example, Meson says:
if not
isinstance(target, build.SharedModule)or target.force_soname:
# Add -Wl,-soname arguments on Linux, -install_name on OS X commands += linker.get_soname_args(
self.environment, target.prefix, target.name, target.suffix, target.soversion, target.darwin_versions)(
force_sonameis set is shared modules are linked into a build target, which is not the case here.Signed-off-by Paolo Bonzini <[email protected]>--- contrib/plugins/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)contrib/plugins/Makefile +0
-0
contrib/plugins/Makefile all: $(SONAMES) · line 40
Quoted 5 lines
contrib/plugins/Makefile +1
-1@@ -37,7 +37,7 @@ all: $(SONAMES) $(CC) $(CFLAGS) -c -o $@ $< lib%.so: %.o - $(CC) -shared -Wl,-soname,$@ -o $@ $^ $(LDLIBS) + $(CC) -shared -o $@ $^ $(LDLIBS)
This fixes on Darwin:
ld: unknown option: -soname
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [plugins] Error 2
Quoted 8 lines · Paolo Bonzini
-soname is not needed for runtime-loaded modules. For example, Meson says:
if not
isinstance(target, build.SharedModule)or target.force_soname:
# Add -Wl,-soname arguments on Linux, -install_name on OS X commands += linker.get_soname_args(
self.environment, target.prefix, target.name, target.suffix, target.soversion, target.darwin_versions)
Quoted 7 lines
(
force_sonameis set is shared modules are linked into a build target, which is not the case here.Signed-off-by Paolo Bonzini<[email protected]>--- contrib/plugins/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
r~