summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2012-02-04 10:24:37 +0000
committerobache <obache@pkgsrc.org>2012-02-04 10:24:37 +0000
commite095bbfda6ae38c17b1e965a9db2800678e17960 (patch)
treed779f1a348a254bd85d16a2f7e75382fb51c582d /audio
parent708cb5440ef2daed7c7def2073bc1e313cbde242 (diff)
downloadpkgsrc-e095bbfda6ae38c17b1e965a9db2800678e17960.tar.gz
Using dlopen unconditionally, so include mk/dlopen.buildlink3.mk and
kill -ldl if it is not found.
Diffstat (limited to 'audio')
-rw-r--r--audio/bml/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/audio/bml/Makefile b/audio/bml/Makefile
index 9e0182314a4..14a35636f99 100644
--- a/audio/bml/Makefile
+++ b/audio/bml/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2012/02/04 06:45:33 sbd Exp $
+# $NetBSD: Makefile,v 1.4 2012/02/04 10:24:37 obache Exp $
#
DISTNAME= bml-0.5.0
@@ -24,8 +24,12 @@ CFLAGS+= -DHAVE_VSSCANF=1 # missing configure logic
.include "../../mk/bsd.prefs.mk"
.if !empty(MACHINE_PLATFORM:MNetBSD-*-i386)
-BUILDLINK_TRANSFORM+= rm:-ldl
LDFLAGS+= -li386 # for i386_set_ldt
.endif
+.include "../../mk/dlopen.buildlink3.mk"
+.if empty(BUILDLINK_LDADD.ldl)
+BUILDLINK_TRANSFORM+= rm:-ldl
+.endif
+
.include "../../mk/bsd.pkg.mk"