File Fix-variable-used-in-rules-to-build-shared-libs-on-Linux.patch of Package bmake.36484
From: Egbert Eich <eich@suse.com>
Date: Wed Nov 20 09:21:26 2024 +0100
Subject: Fix variable used in rules to build shared libs on Linux
Patch-mainline: Upstream
Git-commit: ad4c2af5909ee7376f0ba0b4a298d7f26ea37702
References:
The form: `-Wl,"-soname lib${LIB}.so.${SHLIB_MAJOR}"`
caused an error message:
Error: unable to disambiguate: -soname libelf.so.1 \
(did you mean --soname libelf.so.1 ?)
Instead it should be:
-Wl,"-soname,lib${LIB}.so.${SHLIB_MAJOR}"
as it is in the latest version of bmake. (bsc#1233508)
Signed-off-by: Egbert Eich <eich@suse.com>
Signed-off-by: Egbert Eich <eich@suse.de>
---
mk/lib.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mk/lib.mk b/mk/lib.mk
index 03d24e2..d79b413 100644
--- a/mk/lib.mk
+++ b/mk/lib.mk
@@ -170,7 +170,7 @@ LD_solib= lib${LIB}_pic.a
.elif ${TARGET_OSNAME} == "Linux"
SHLIB_LD = ${CC}
# this is ambiguous of course
-LD_shared=-shared -Wl,"-soname lib${LIB}.so.${SHLIB_MAJOR}"
+LD_shared=-shared -Wl,"-soname,lib${LIB}.so.${SHLIB_MAJOR}"
LD_solib= -Wl,--whole-archive lib${LIB}_pic.a -Wl,--no-whole-archive
.if ${COMPILER_TYPE} == "gcc"
# Linux uses GNU ld, which is a multi-pass linker