bmake: fix wrong linker parameter passed when making shared libs

This commit is contained in:
q66 2021-06-23 03:02:49 +02:00
parent a1a6021f2a
commit f556f8a0e1
2 changed files with 26 additions and 1 deletions

View file

@ -0,0 +1,25 @@
From 20210a4abd417f067483875fbb8aaabe56a344d0 Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Wed, 23 Jun 2021 03:02:10 +0200
Subject: [PATCH] fix broken shared library creation
---
mk/lib.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mk/lib.mk b/mk/lib.mk
index c397941..ca29e8f 100644
--- a/bmake/mk/lib.mk
+++ b/bmake/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
--
2.31.1

View file

@ -1,7 +1,7 @@
# Template file for 'bmake'
pkgname=bmake
version=20210420
revision=1
revision=2
create_wrksrc=yes
short_desc="Portable version of the NetBSD make build tool"
maintainer="Orphaned <orphan@voidlinux.org>"