pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

spread4: Remediate upstream -ldl lossage



Module Name:	pkgsrc-wip
Committed By:	Greg Troxel <gdt%lexort.com@localhost>
Pushed By:	gdt
Date:		Mon Aug 31 18:50:44 2020 -0400
Changeset:	79972ab6bcab80241cb46c3ad5b1f7c1bbf0e557

Modified Files:
	spread4/Makefile

Log Message:
spread4: Remediate upstream -ldl lossage

When linking, drop -ldl, not required or expected by POSIX.   Improves
build on NetBSD.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=79972ab6bcab80241cb46c3ad5b1f7c1bbf0e557

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 spread4/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diffs:
diff --git a/spread4/Makefile b/spread4/Makefile
index 9be0f1e3f0..c00fe77933 100644
--- a/spread4/Makefile
+++ b/spread4/Makefile
@@ -55,5 +55,10 @@ SUBST_VARS.spread=	SPREAD_USER SPREAD_GROUP SPREAD_DIR PKG_SYSCONFDIR
 post-install:
 	${INSTALL_DATA} ${WRKSRC}/docs/sample.spread.access_ip ${DESTDIR}${EXAMPLEDIR}/spread.access_ip
 
+.include "../../mk/dlopen.buildlink3.mk"
+# Work around upstream bug where -ldl is added on NetBSD.  Reported to
+# contact address on 20200830.
+BUILDLINK_TRANSFORM+=   opt:-ldl:${BUILDLINK_LDADD.dl:M*}
+
 .include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index