The previous patch applies for the result of:
$ apt-get source bmake
Since Debian does not ship with the upstream mk files, the
attached patch applies to the Debian-shipped mk; and is meant
to be used by the packager.
Thanks,
P. Grégoire
diff --git a/debian/mk/bsd.lib.mk b/debian/mk/bsd.lib.mk
index 682fd82..fccea05 100644
--- a/debian/mk/bsd.lib.mk
+++ b/debian/mk/bsd.lib.mk
@@ -143,7 +143,7 @@ MKPICLIB?= yes
.if ${OBJECT_FMT} == "ELF"
SHLIB_TYPE=ELF
SHLIB_SOVERSION= ${SHLIB_MAJOR}
-SHLIB_SHFLAGS= -soname lib${LIB}.so.${SHLIB_SOVERSION}
+SHLIB_SHFLAGS= -Wl,-soname=lib${LIB}.so.${SHLIB_SOVERSION}
.if exists(${DESTDIR}/usr/lib/${MACHINE_MULTIARCH}/crtbeginS.o)
SHLIB_LDSTARTFILE?= ${DESTDIR}/usr/lib/${MACHINE_MULTIARCH}/crtbeginS.o
.else