From f556f8a0e1c8aeb4c27091ace4f6026d1b37d318 Mon Sep 17 00:00:00 2001 From: q66 Date: Wed, 23 Jun 2021 03:02:49 +0200 Subject: [PATCH] bmake: fix wrong linker parameter passed when making shared libs --- ...1-fix-broken-shared-library-creation.patch | 25 +++++++++++++++++++ srcpkgs/bmake/template | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/bmake/patches/0001-fix-broken-shared-library-creation.patch diff --git a/srcpkgs/bmake/patches/0001-fix-broken-shared-library-creation.patch b/srcpkgs/bmake/patches/0001-fix-broken-shared-library-creation.patch new file mode 100644 index 00000000000..6516461fb2e --- /dev/null +++ b/srcpkgs/bmake/patches/0001-fix-broken-shared-library-creation.patch @@ -0,0 +1,25 @@ +From 20210a4abd417f067483875fbb8aaabe56a344d0 Mon Sep 17 00:00:00 2001 +From: q66 +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 + diff --git a/srcpkgs/bmake/template b/srcpkgs/bmake/template index c0ec4a889d6..cc425b96a10 100644 --- a/srcpkgs/bmake/template +++ b/srcpkgs/bmake/template @@ -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 "